comparison utils.c @ 5396:aec4d71f32e4 libavformat

Print a warning if the duration is estimated from the bitrate, as this is likely not accurate.
author michael
date Mon, 30 Nov 2009 22:08:22 +0000
parents 238bda5af58e
children 0b4951f549d4
comparison
equal deleted inserted replaced
5395:af65f63f2063 5396:aec4d71f32e4
1863 } else if (av_has_duration(ic)) { 1863 } else if (av_has_duration(ic)) {
1864 /* at least one component has timings - we use them for all 1864 /* at least one component has timings - we use them for all
1865 the components */ 1865 the components */
1866 fill_all_stream_timings(ic); 1866 fill_all_stream_timings(ic);
1867 } else { 1867 } else {
1868 av_log(ic, AV_LOG_WARNING, "Estimating duration from bitrate, this may be inaccurate\n");
1868 /* less precise: use bitrate info */ 1869 /* less precise: use bitrate info */
1869 av_estimate_timings_from_bit_rate(ic); 1870 av_estimate_timings_from_bit_rate(ic);
1870 } 1871 }
1871 av_update_stream_timings(ic); 1872 av_update_stream_timings(ic);
1872 1873