Print a warning if the duration is estimated from the bitrate, as this is
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Nov 2009 22:08:22 +0000 (22:08 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Nov 2009 22:08:22 +0000 (22:08 +0000)
likely not accurate.

Originally committed as revision 20675 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index c76ea69..811835e 100644 (file)
@@ -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);
     }