]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vb.c
xan: Prevent out of bound accesses
[ffmpeg] / libavcodec / vb.c
index fb372837648f5084cfda2b456e4c73d1172ba7da..96387b6d1d9e175da3fbaae6b5869c89253a3577 100644 (file)
@@ -288,14 +288,13 @@ static av_cold int decode_end(AVCodecContext *avctx)
 }
 
 AVCodec ff_vb_decoder = {
-    "vb",
-    AVMEDIA_TYPE_VIDEO,
-    CODEC_ID_VB,
-    sizeof(VBDecContext),
-    decode_init,
-    NULL,
-    decode_end,
-    decode_frame,
+    .name           = "vb",
+    .type           = AVMEDIA_TYPE_VIDEO,
+    .id             = CODEC_ID_VB,
+    .priv_data_size = sizeof(VBDecContext),
+    .init           = decode_init,
+    .close          = decode_end,
+    .decode         = decode_frame,
     .long_name = NULL_IF_CONFIG_SMALL("Beam Software VB"),
 };