aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/argo_asf.c
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
commitc8c12fb5d69107f94c5a0be14d0f3646861c60d1 (patch)
treeab80955bc965e76e26f02305b0ca3567bfc6bdd9 /libavformat/argo_asf.c
parentc182c706589de2b513331c61a8597fa863d4e97f (diff)
downloadffmpeg-c8c12fb5d69107f94c5a0be14d0f3646861c60d1.tar.gz
avformat/argo_asf: Fix order of operations in error check in argo_asf_write_trailer()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/argo_asf.c')
-rw-r--r--libavformat/argo_asf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c
index 2b3569ebc3..d26844d1e2 100644
--- a/libavformat/argo_asf.c
+++ b/libavformat/argo_asf.c
@@ -423,7 +423,7 @@ static int argo_asf_write_trailer(AVFormatContext *s)
ArgoASFMuxContext *ctx = s->priv_data;
int64_t ret;
- if ((ret = avio_seek(s->pb, ASF_FILE_HEADER_SIZE, SEEK_SET) < 0))
+ if ((ret = avio_seek(s->pb, ASF_FILE_HEADER_SIZE, SEEK_SET)) < 0)
return ret;
avio_wl32(s->pb, (uint32_t)ctx->nb_blocks);