summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-02-14 20:24:07 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-02-25 22:23:03 +0100
commit70a1024290b7a6a6d544a16dc80daea9bfce0b13 (patch)
tree7ea2ac885700c02518d05dbbaa933c089b67e034 /libavformat
parentc8c12fb5d69107f94c5a0be14d0f3646861c60d1 (diff)
avformat/argo_cvg:: Fix order of operations in error check in argo_cvg_write_trailer()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/argo_cvg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c
index f59e93496f..dfdf126c17 100644
--- a/libavformat/argo_cvg.c
+++ b/libavformat/argo_cvg.c
@@ -345,7 +345,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);