summaryrefslogtreecommitdiff
path: root/libavcodec/xsubdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/xsubdec.c')
-rw-r--r--libavcodec/xsubdec.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 4afefac2c4..0791fdd05c 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -134,13 +134,10 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
}
AVCodec ff_xsub_decoder = {
- "xsub",
- AVMEDIA_TYPE_SUBTITLE,
- CODEC_ID_XSUB,
- 0,
- decode_init,
- NULL,
- NULL,
- decode_frame,
+ .name = "xsub",
+ .type = AVMEDIA_TYPE_SUBTITLE,
+ .id = CODEC_ID_XSUB,
+ .init = decode_init,
+ .decode = decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("XSUB"),
};