[FFmpeg-cvslog] avformat_find_stream_info: move duration guessing after updating codec parameters
Anton Khirnov
git at videolan.org
Wed Apr 13 16:38:28 CEST 2016
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 3 10:07:55 2016 +0100| [1ceb07eb313c2d51383408025e57a2fe50ccd164] | committer: Anton Khirnov
avformat_find_stream_info: move duration guessing after updating codec parameters
This bitrate might not be known otherwise.
Bug-Id: 926
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ceb07eb313c2d51383408025e57a2fe50ccd164
---
libavformat/utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a70746a..31faa95 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2431,8 +2431,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}
- estimate_timings(ic, old_offset);
-
compute_chapters_end(ic);
/* update the stream parameters from the internal codec contexts */
@@ -2465,6 +2463,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
st->internal->avctx_inited = 0;
}
+ estimate_timings(ic, old_offset);
+
find_stream_info_err:
for (i = 0; i < ic->nb_streams; i++) {
av_freep(&ic->streams[i]->info);
More information about the ffmpeg-cvslog
mailing list