[FFmpeg-cvslog] avfilter/framesync: fix order of operation with = and <0

Michael Niedermayer git at videolan.org
Sat Nov 4 00:56:02 EET 2023


ffmpeg | branch: release/6.0 | Michael Niedermayer <michael at niedermayer.cc> | Thu Nov  2 23:49:53 2023 +0100| [14b1998c1a53d8ccdebd84bd988aad4bd0f58f14] | committer: Michael Niedermayer

avfilter/framesync: fix order of operation with = and <0

Reviewed-by: Sean McGovern <gseanmcg at gmail.com>
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 9450a4a7fef5816ee893177c903f0232724c57c6)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=14b1998c1a53d8ccdebd84bd988aad4bd0f58f14
---

 libavfilter/framesync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c
index c748262ba6..6cb4b21fed 100644
--- a/libavfilter/framesync.c
+++ b/libavfilter/framesync.c
@@ -288,7 +288,7 @@ int ff_framesync_get_frame(FFFrameSync *fs, unsigned in, AVFrame **rframe,
         if (need_copy) {
             if (!(frame = av_frame_clone(frame)))
                 return AVERROR(ENOMEM);
-            if ((ret = ff_inlink_make_frame_writable(fs->parent->inputs[in], &frame) < 0)) {
+            if ((ret = ff_inlink_make_frame_writable(fs->parent->inputs[in], &frame)) < 0) {
                 av_frame_free(&frame);
                 return ret;
             }



More information about the ffmpeg-cvslog mailing list