[FFmpeg-devel] [PATCH 3/4] avutil/opt: assert that AVOption name is set

Stefano Sabatini stefasab at gmail.com
Mon Apr 15 21:50:25 CEST 2013


On date Saturday 2013-04-13 20:37:14 +0200, Michael Niedermayer encoded:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavutil/opt.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavutil/opt.c b/libavutil/opt.c
> index 23f57b5..60d943c 100644
> --- a/libavutil/opt.c
> +++ b/libavutil/opt.c
> @@ -85,6 +85,7 @@ const AVOption *av_opt_next(void *obj, const AVOption *last)
>              av_log(obj, AV_LOG_FATAL, "Invalid offset / type combination in %s\n", o->name);
>              av_assert2(0);
>          }
> +        av_assert2(o->name);

LGTM.
-- 
FFmpeg = Faithful Fantastic Magnificient Proud Ecstatic Geek


More information about the ffmpeg-devel mailing list