1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2022-02-14 20:24:07 +01:00
parent c8c12fb5d6
commit 70a1024290

View File

@@ -345,7 +345,7 @@ static int argo_cvg_write_trailer(AVFormatContext *s)
avio_wl32(s->pb, ctx->checksum); 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; return ret;
avio_wl32(s->pb, (uint32_t)ctx->size); avio_wl32(s->pb, (uint32_t)ctx->size);