From 985920433cdb7795ca3966329c76c7a670385132 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Tue, 17 Sep 2013 23:36:48 +0800 Subject: [PATCH] avformat/asfenc: fix a build error It's introduced by the erroneous merging commit cbe47b1e. Signed-off-by: Michael Niedermayer --- libavformat/asfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 85748c76b7..516e0d0e47 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -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); }