[FFmpeg-devel] [RFC][PATCH] Windows Television (WTV) file system handling

Ronald S. Bultje rsbultje
Fri Feb 4 03:51:58 CET 2011


Hi,

2011/2/3 M?ns Rullg?rd <mans at mansr.com>:
> Peter Ross <pross at xvid.org> writes:
>
>> From a8caba581f97eae7616cf1dac754970e89bdc459 Mon Sep 17 00:00:00 2001
>> From: Peter Ross <pross at xvid.org>
>> Date: Sat, 22 Jan 2011 20:03:22 +1100
>> Subject: [PATCH 3/3] add ff_index_search_timestamp and ff_add_index_entry
>>
>> ---
>> ?libavformat/avformat.h | ? 14 ++++++++++++++
>> ?libavformat/utils.c ? ?| ? 45 ++++++++++++++++++++++++++++++---------------
>> ?2 files changed, 44 insertions(+), 15 deletions(-)
>>
>> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
>> index f9f9be5..9fab840 100644
>> --- a/libavformat/avformat.h
>> +++ b/libavformat/avformat.h
>> @@ -1278,6 +1278,12 @@ void av_set_pts_info(AVStream *s, int pts_wrap_bits,
>> ?int av_find_default_stream_index(AVFormatContext *s);
>>
>> ?/**
>> + * Internal version of av_index_search_timestamp
>> + */
>> +int ff_index_search_timestamp(const AVIndexEntry *entries, int nb_entries,
>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?int64_t wanted_timestamp, int flags);
>> +
>> +/**
>> ? * Get the index for a specific timestamp.
>> ? * @param flags if AVSEEK_FLAG_BACKWARD then the returned index will correspond
>> ? * ? ? ? ? ? ? ? ? to the timestamp which is <= the requested one, if backward
>> @@ -1297,6 +1303,14 @@ int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags);
>> ?void ff_reduce_index(AVFormatContext *s, int stream_index);
>>
>> ?/**
>> + * Internal version of av_add_index_entry
>> + */
>> +int ff_add_index_entry(AVIndexEntry **index_entries,
>> + ? ? ? ? ? ? ? ? ? ? ? int *nb_index_entries,
>> + ? ? ? ? ? ? ? ? ? ? ? unsigned int *index_entries_allocated_size,
>> + ? ? ? ? ? ? ? ? ? ? ? int64_t pos, int64_t timestamp, int size, int distance, int flags);
>> +
>> +/**
>> ? * Add an index entry into a sorted list. Update the entry if the list
>> ? * already contains it.
>> ? *
>
> Internal stuff does not belong in public headers. ?Please move it elsewhere.

Moved to internal.h, and committed. Sorry for breaking build, I was impatient...

Ronald



More information about the ffmpeg-devel mailing list