avformat/asfenc: fix a build error

It's introduced by the erroneous merging commit cbe47b1e.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/36/head
Chih-Wei Huang 12 years ago committed by Michael Niedermayer
parent 112017e990
commit 985920433c
  1. 2
      libavformat/asfenc.c

@ -869,7 +869,7 @@ static int asf_write_trailer(AVFormatContext *s)
/* write index */ /* write index */
data_size = avio_tell(s->pb); data_size = avio_tell(s->pb);
if (!asf->is_streamed && asf->next_start_sec) { 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; return ret;
asf_write_index(s, asf->index_ptr, asf->maximum_packet, asf->next_start_sec); asf_write_index(s, asf->index_ptr, asf->maximum_packet, asf->next_start_sec);
} }

Loading…
Cancel
Save