[FFmpeg-devel] [PATCH 2/4] lavu/opt: add flag to return NULL when applicable in av_opt_get

Rodger Combs rodger.combs at gmail.com
Mon Sep 21 19:46:46 CEST 2015


> On Sep 21, 2015, at 05:53, Nicolas George <george at nsup.org> wrote:
> 
> Le jour de la Récompense, an CCXXIII, Rodger Combs a écrit :
>> ---
>> libavutil/opt.c     | 12 ++++++++++--
>> libavutil/opt.h     | 10 ++++++++++
>> libavutil/version.h |  2 +-
>> 3 files changed, 21 insertions(+), 3 deletions(-)
> 
> I think this is a good idea.
> 
> (I would even say it should be the default, but the transition is annoying.)
My thoughts as well.
> 
>> +#define AV_OPT_SEARCH_ALLOW_NULL (1 << 2)
> 
> Maybe AV_OPT_ALLOW_NULL? It is not really about searching the option.
Good point; I'll adjust.
> 
> Regards,
> 
> -- 
>  Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list