]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dvdsubenc.c
golomb: always check for invalid UE golomb codes in get_ue_golomb
[ffmpeg] / libavcodec / dvdsubenc.c
index d2a0015fb62ac347fd06460a27cc9aaea4dfa411..29e0322daac25d0809e665af708a538675151e97 100644 (file)
@@ -467,7 +467,7 @@ static int dvdsub_encode(AVCodecContext *avctx,
 #define OFFSET(x) offsetof(DVDSubtitleContext, x)
 #define SE AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption options[] = {
-    {"even_rows_fix", "Make number of rows even (workaround for some players)", OFFSET(even_rows_fix), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, SE},
+    {"even_rows_fix", "Make number of rows even (workaround for some players)", OFFSET(even_rows_fix), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, SE},
     { NULL },
 };