[FFmpeg-cvslog] avformat/argo_cvg:: Fix order of operations in error check in argo_cvg_write_trailer()

Michael Niedermayer git at videolan.org
Tue Mar 29 02:27:51 EEST 2022


ffmpeg | branch: release/5.0 | Michael Niedermayer <michael at niedermayer.cc> | Mon Feb 14 20:24:07 2022 +0100| [5c4fdf111e88be8fd5dfcfe7a3f91e8afd68925d] | committer: Michael Niedermayer

avformat/argo_cvg:: Fix order of operations in error check in argo_cvg_write_trailer()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 70a1024290b7a6a6d544a16dc80daea9bfce0b13)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavformat/argo_cvg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c
index e1854b4493..c5da32536d 100644
--- a/libavformat/argo_cvg.c
+++ b/libavformat/argo_cvg.c
@@ -350,7 +350,7 @@ static int argo_cvg_write_trailer(AVFormatContext *s)
      */
     avio_wl32(s->pb, ctx->checksum);
 
-    if ((ret = avio_seek(s->pb, 0, SEEK_SET) < 0))
+    if ((ret = avio_seek(s->pb, 0, SEEK_SET)) < 0)
         return ret;
 
     avio_wl32(s->pb, (uint32_t)ctx->size);



More information about the ffmpeg-cvslog mailing list