forked from FFmpeg/FFmpeg
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
This commit is contained in:
parent
cea65433e0
commit
77ac76a30f
1 changed files with 1 additions and 0 deletions
|
@ -1865,6 +1865,7 @@ static void av_estimate_timings(AVFormatContext *ic, int64_t old_offset)
|
||||||
the components */
|
the components */
|
||||||
fill_all_stream_timings(ic);
|
fill_all_stream_timings(ic);
|
||||||
} else {
|
} else {
|
||||||
|
av_log(ic, AV_LOG_WARNING, "Estimating duration from bitrate, this may be inaccurate\n");
|
||||||
/* less precise: use bitrate info */
|
/* less precise: use bitrate info */
|
||||||
av_estimate_timings_from_bit_rate(ic);
|
av_estimate_timings_from_bit_rate(ic);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue