[FFmpeg-devel] [PATCH] lavf/ape: Fix last packet duration calculation

Paul B Mahol onemda at gmail.com
Sun Aug 26 12:28:25 CEST 2012

On 8/26/12, Paul B Mahol <onemda at gmail.com> wrote:
> On 8/25/12, Michael Niedermayer <michaelni at gmx.at> wrote:
>> this causes a significant slowdown on slow media, as much more data
>> will be read in the hope to find a valid PTS (that will not be found
>> before EOF or max_analyze_duration)
> That is because of extremly big superframes in ape, I really doubt there
> is real slowdown with this patch, because avformat reads whole packet
> anyway.
>> you can see this with -v 99
>> with pts:
>> All info found
>> File position after avformat_find_stream_info() is 134672
>> without pts:
>> max_analyze_duration 5000000 reached at 5015510
>> File position after avformat_find_stream_info() is 1048576
> I think this is unrelated bug, current packet duration caclulation is
> wrong with ape.
> It have many frames in single packet and this does not work correctly at
> all.

And I doubt that using ape on such slow media works at all.

More information about the ffmpeg-devel mailing list