[FFmpeg-cvslog] r20675 - trunk/libavformat/utils.c

michael subversion
Mon Nov 30 23:08:22 CET 2009


Author: michael
Date: Mon Nov 30 23:08:22 2009
New Revision: 20675

Log:
Print a warning if the duration is estimated from the bitrate, as this is
likely not accurate.

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Mon Nov 30 23:01:21 2009	(r20674)
+++ trunk/libavformat/utils.c	Mon Nov 30 23:08:22 2009	(r20675)
@@ -1865,6 +1865,7 @@ static void av_estimate_timings(AVFormat
            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);
     }



More information about the ffmpeg-cvslog mailing list