aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-02-14 20:24:07 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-03-28 23:18:56 +0200
commit5c4fdf111e88be8fd5dfcfe7a3f91e8afd68925d (patch)
tree0445385d0c8a2237e934d2cc11efebe8bd3a3ccc
parent6bd882f98a1865bba25c44e9ecb49909043dc32b (diff)
downloadffmpeg-5c4fdf111e88be8fd5dfcfe7a3f91e8afd68925d.tar.gz
avformat/argo_cvg:: Fix order of operations in error check in argo_cvg_write_trailer()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 70a1024290b7a6a6d544a16dc80daea9bfce0b13) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-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 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);