mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
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 70a1024290
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6bd882f98a
commit
5c4fdf111e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user