avformat/asfenc: fix a build error

It's introduced by the erroneous merging commit cbe47b1e.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Chih-Wei Huang 2013-09-17 23:36:48 +08:00 committed by Michael Niedermayer
parent 112017e990
commit 985920433c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}