avcodec/libutvideoenc: Add NULL termintor to options
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 Feb 2016 01:17:57 +0000 (02:17 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 Feb 2016 01:17:57 +0000 (02:17 +0100)
Fixes segfaults

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libutvideoenc.cpp

index a90a955..d5dfef9 100644 (file)
@@ -232,6 +232,7 @@ static const AVOption options[] = {
     { "pred", "Prediction method", OFFSET(pred), AV_OPT_TYPE_INT, 0, 0, 2, VE, "pred" },
     { "left",   NULL, 0, AV_OPT_TYPE_CONST, 0, INT_MIN, INT_MAX, VE, "pred" },
     { "median",   NULL, 0, AV_OPT_TYPE_CONST, 2, INT_MIN, INT_MAX, VE, "pred" },
+    { NULL },
 };
 
 static const AVClass utvideo_class = {