This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 88cd68c8fd50b91455f8089ea636c0e8f7124344 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 13 06:25:02 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 avfilter: make a frame whose format differs from the link writable with av_frame_make_writable() Fixes: A3O7F4s10WXJ Fixes: EINVAL on a format change EINVAL on a format change Replicated through UnModified FFmpeg with a plain output diff Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765 --- libavfilter/avfilter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 5be67bbf3f..d078e404ff 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -1596,6 +1596,8 @@ int ff_inlink_make_frame_writable(AVFilterLink *link, AVFrame **rframe) switch (link->type) { case AVMEDIA_TYPE_VIDEO: + if (frame->format != link->format) + return av_frame_make_writable(frame); out = ff_get_video_buffer(link, frame->width, frame->height); break; case AVMEDIA_TYPE_AUDIO: -- 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]
