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

Michael Niedermayer michaelni at gmx.at
Sat Apr 13 20:37:14 CEST 2013


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);
     }
 #endif
     if (!last && class->option && class->option[0].name)
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list