On 10/12/2011 03:55 PM, Janne Grunau wrote:

> On Wed, Oct 12, 2011 at 09:50:13PM +0200, Janne Grunau wrote:
>> On Sun, Oct 02, 2011 at 12:09:09PM -0400, Justin Ruggles wrote:
>>> This will prevent seeking by bytes for formats that cannot handle this.
>>> ---
>>>  libavformat/avformat.h |    3 ++-
>>>  libavformat/utils.c    |    2 +-
>>>  2 files changed, 3 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
>>> index 7b350f1..e38a3dd 100644
>>> --- a/libavformat/avformat.h
>>> +++ b/libavformat/avformat.h
>>> @@ -274,6 +274,7 @@ typedef struct AVFormatParameters {
>>>  #define AVFMT_NOSTREAMS     0x1000 /**< Format does not require any 
>>> streams */
>>>  #define AVFMT_NOBINSEARCH   0x2000 /**< Format does not allow to fallback 
>>> to binary search via read_timestamp */
>>>  #define AVFMT_NOGENSEARCH   0x4000 /**< Format does not allow to fallback 
>>> to generic search */
>>> +#define AVFMT_NO_SEEK_BY_BYTES 0x8000 /**< Format does not allow seeking 
>>> by bytes */
>>
>> AVFMT_NOBYTESEARCH would match the the other seek flags, otherwise ok
> 
> or AVFMT_NOBYTESEEK or even AVFMT_NO_BYTE_SEEK, it looks a little bit
> silly without spaces. sorry for the bikeshedding


no bytes? eek! ;)

AVFMT_NO_BYTE_SEEK is fine with me.

-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to