diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-11-30 22:08:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-11-30 22:08:22 +0000 |
commit | 77ac76a30f7ce52198fcccfea5e1493755784d5a (patch) | |
tree | 4035c1fc502103802ce5a7421838a7518cd65836 /libavformat/utils.c | |
parent | cea65433e087f1a6e3fafb41d99f930d78f9380a (diff) | |
download | ffmpeg-77ac76a30f7ce52198fcccfea5e1493755784d5a.tar.gz |
Print a warning if the duration is estimated from the bitrate, as this is
likely not accurate.
Originally committed as revision 20675 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c76ea69081..811835e16b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1865,6 +1865,7 @@ static void av_estimate_timings(AVFormatContext *ic, int64_t old_offset) the components */ fill_all_stream_timings(ic); } else { + av_log(ic, AV_LOG_WARNING, "Estimating duration from bitrate, this may be inaccurate\n"); /* less precise: use bitrate info */ av_estimate_timings_from_bit_rate(ic); } |