avcodec/libutvideoenc: Add NULL termintor to options

Fixes segfaults

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/174/head
Michael Niedermayer 9 years ago
parent 61ea7f1509
commit 37db3e8931
  1. 1
      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 = {

Loading…
Cancel
Save