]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xsubdec.c
ac3: detect dba errors and prevent writing past end of array
[ffmpeg] / libavcodec / xsubdec.c
index 391a003acb885e23661269aaafcc06e19aa5f654..5f7d8fd23dbbbabb92d694688fc1e81f6c7ee3f1 100644 (file)
@@ -22,7 +22,7 @@
 #include "bitstream.h"
 #include "bytestream.h"
 
-static int decode_init(AVCodecContext *avctx) {
+static av_cold int decode_init(AVCodecContext *avctx) {
     avctx->pix_fmt = PIX_FMT_PAL8;
     return 0;
 }
@@ -133,4 +133,5 @@ AVCodec xsub_decoder = {
     NULL,
     NULL,
     decode_frame,
+    .long_name = NULL_IF_CONFIG_SMALL("XSUB"),
 };