]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/4xm.c
Fix decoding of 2/4 bpp Tiff samples.
[ffmpeg] / libavcodec / 4xm.c
index d89b494b09309b82d1e9efce54e90d7fa12794d3..cf98e91766a0edc09f9fa7d973d49a49b612da73 100644 (file)
@@ -865,15 +865,14 @@ static av_cold int decode_end(AVCodecContext *avctx){
 }
 
 AVCodec ff_fourxm_decoder = {
-    "4xm",
-    AVMEDIA_TYPE_VIDEO,
-    CODEC_ID_4XM,
-    sizeof(FourXContext),
-    decode_init,
-    NULL,
-    decode_end,
-    decode_frame,
-    CODEC_CAP_DR1,
+    .name           = "4xm",
+    .type           = AVMEDIA_TYPE_VIDEO,
+    .id             = CODEC_ID_4XM,
+    .priv_data_size = sizeof(FourXContext),
+    .init           = decode_init,
+    .close          = decode_end,
+    .decode         = decode_frame,
+    .capabilities   = CODEC_CAP_DR1,
     .long_name = NULL_IF_CONFIG_SMALL("4X Movie"),
 };