avcodec/libutvideoenc: Add NULL termintor to options

Fixes segfaults

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-04 02:17:57 +01:00
parent 61ea7f1509
commit 37db3e8931
1 changed files with 1 additions and 0 deletions

View 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 = {