[SCM] libav/experimental: Print a warning if the duration is estimated from the bitrate, as this is likely not accurate.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:55:14 UTC 2013


The following commit has been merged in the experimental branch:
commit 77ac76a30f7ce52198fcccfea5e1493755784d5a
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Mon Nov 30 22:08:22 2009 +0000

    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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index c76ea69..811835e 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);
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list