Commit 98592043 authored by Chih-Wei Huang's avatar Chih-Wei Huang Committed by Michael Niedermayer

avformat/asfenc: fix a build error

It's introduced by the erroneous merging commit cbe47b1e.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 112017e9
......@@ -869,7 +869,7 @@ static int asf_write_trailer(AVFormatContext *s)
/* write index */
data_size = avio_tell(s->pb);
if (!asf->is_streamed && asf->next_start_sec) {
if ((ret = update_index(s, asf->end_sec + 1, 0, 0)) < ret)
if ((ret = update_index(s, asf->end_sec + 1, 0, 0)) < 0)
return ret;
asf_write_index(s, asf->index_ptr, asf->maximum_packet, asf->next_start_sec);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment