On 23/03/12 15:46, Martin Storsjö wrote:
> On Fri, 23 Mar 2012, Luca Barbato wrote:
>
>> ---
>> libavformat/avformat.h | 1 +
>> libavformat/options.c | 1 +
>> libavformat/utils.c | 13 ++++++++-----
>> 3 files changed, 10 insertions(+), 5 deletions(-)
>>
>> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
>> index e0b3b3f..31300c8 100644
>> --- a/libavformat/avformat.h
>> +++ b/libavformat/avformat.h
>> @@ -806,6 +806,7 @@ typedef struct AVFormatContext {
>> #define AVFMT_FLAG_NOPARSE 0x0020 ///< Do not use AVParsers, you
>> also must set AVFMT_FLAG_NOFILLIN as the fillin code works on frames
>> and no parsing -> no frames. Also seeking to frames can not work if
>> parsing to find frame boundaries has been disabled
>> #define AVFMT_FLAG_CUSTOM_IO 0x0080 ///< The caller has supplied a
>> custom AVIOContext, don't avio_close() it.
>> #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100 ///< Discard frames marked
>> corrupted
>> +#define AVFMT_FLAG_NOBUFFER 0x0200 ///< Do not buffer frames when
>> possible
>>
>> /**
>> * decoding: size of data to probe; encoding: unused.
>> diff --git a/libavformat/options.c b/libavformat/options.c
>> index dcc3d60..9cf0155 100644
>> --- a/libavformat/options.c
>> +++ b/libavformat/options.c
>> @@ -90,6 +90,7 @@ static const AVOption options[]={
>> {"noparse", "disable AVParsers, this needs nofillin too", 0,
>> AV_OPT_TYPE_CONST, {.dbl = AVFMT_FLAG_NOPARSE }, INT_MIN, INT_MAX, D,
>> "fflags"},
>> {"igndts", "ignore dts", 0, AV_OPT_TYPE_CONST, {.dbl =
>> AVFMT_FLAG_IGNDTS }, INT_MIN, INT_MAX, D, "fflags"},
>> {"discardcorrupt", "discard corrupted frames", 0, AV_OPT_TYPE_CONST,
>> {.dbl = AVFMT_FLAG_DISCARD_CORRUPT }, INT_MIN, INT_MAX, D, "fflags"},
>> +{"zerolatency", "reduce the latency introduced by optional
>> buffering", 0, AV_OPT_TYPE_CONST, {.dbl = AVFMT_FLAG_NOBUFFER }, 0,
>> INT_MAX, D, "fflags"},
>
> Didn't look too closely at the rest yet, but, why the different name
> here - why not just nobuffer or so here too?
>
I can switch the name to that once we do agree if it is useful and if
needs changes. (avplay would need some changes).
lu
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel