[FFmpeg-devel] [PATCH] ff_add_av_index_entry_internal

Baptiste Coudurier baptiste.coudurier
Sat Nov 21 03:15:47 CET 2009


On 11/20/2009 05:52 PM, Michael Niedermayer wrote:
> On Fri, Nov 20, 2009 at 05:41:09PM -0800, Baptiste Coudurier wrote:
>> Guys,
>>
>> This introduce ff_add_av_index_entry_internal which do _not_ search for
>> duplicates.
>> Searching for duplicates really slow down index populating for demuxers
>> having an index in the file, and it's useless since there are no
>> duplicates. Basically mov demuxer calls it for each sample :(
>
> i think i know a better solution:
> add a check in av_index_search_timestamp() before the slow loop
> that checks if the searched pos is after the last and if so skip
> the loop.
>

Something like this ?

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: av_index_search_timestamps_fast.patch
Type: text/x-diff
Size: 1347 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091120/7cea010d/attachment.patch>



More information about the ffmpeg-devel mailing list