mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avformat/argo_asf: Fix order of operations in error check in argo_asf_write_trailer()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c8c12fb5d6
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5cdceec2f2
commit
811047f7c2
@ -422,7 +422,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);
|
||||
|
Loading…
Reference in New Issue
Block a user