]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cljr.c
aacenc: fix out of array writes
[ffmpeg] / libavcodec / cljr.c
index 1187f2bca0755f47692fc2715f7e8bd9bd1f3700..7f31aa5b07c7b21694ea34fe80d350e5f7df4000 100644 (file)
@@ -185,7 +185,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 #define OFFSET(x) offsetof(CLJRContext, x)
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption options[] = {
-    { "dither_type",   "Dither type",   OFFSET(dither_type),        AV_OPT_TYPE_INT, { .dbl=1 }, 0, 2, VE},
+    { "dither_type",   "Dither type",   OFFSET(dither_type),        AV_OPT_TYPE_INT, { .i64=1 }, 0, 2, VE},
     { NULL },
 };