[FFmpeg-cvslog] avcodec/libutvideoenc: Add NULL termintor to options

Michael Niedermayer git at videolan.org
Thu Feb 4 02:21:56 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Feb  4 02:17:57 2016 +0100| [37db3e8931f616abe1031770359ef30c1dcb6418] | committer: Michael Niedermayer

avcodec/libutvideoenc: Add NULL termintor to options

Fixes segfaults

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37db3e8931f616abe1031770359ef30c1dcb6418
---

 libavcodec/libutvideoenc.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp
index a90a955..d5dfef9 100644
--- a/libavcodec/libutvideoenc.cpp
+++ b/libavcodec/libutvideoenc.cpp
@@ -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 = {



More information about the ffmpeg-cvslog mailing list