This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 6dcbe26a7a52af4aa46477e187a884804ca47e03 Author: Zhao Zhili <[email protected]> AuthorDate: Tue Sep 15 16:18:37 2026 +0800 Commit: Zhao Zhili <[email protected]> CommitDate: Fri Sep 18 08:40:24 2026 +0000 avfilter/vf_yadif_videotoolbox: stop on Metal texture creation failure --- libavfilter/vf_yadif_videotoolbox.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavfilter/vf_yadif_videotoolbox.m b/libavfilter/vf_yadif_videotoolbox.m index b014985997..11a801dc0e 100644 --- a/libavfilter/vf_yadif_videotoolbox.m +++ b/libavfilter/vf_yadif_videotoolbox.m @@ -146,6 +146,15 @@ static void filter(AVFilterContext *ctx, AVFrame *dst, next = ff_metal_texture_from_pixbuf(ctx, s->textureCache, (CVPixelBufferRef)y->next->data[3], i, format); dest = ff_metal_texture_from_pixbuf(ctx, s->textureCache, (CVPixelBufferRef)dst->data[3], i, format); + if (!prev || !cur || !next || !dest) { + av_log(ctx, AV_LOG_ERROR, "Failed to create Metal texture for plane %d\n", i); + if (prev) CFRelease(prev); + if (cur) CFRelease(cur); + if (next) CFRelease(next); + if (dest) CFRelease(dest); + return; + } + tex_prev = CVMetalTextureGetTexture(prev); tex_cur = CVMetalTextureGetTexture(cur); tex_next = CVMetalTextureGetTexture(next); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
