]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cdtoons.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / cdtoons.c
index a8609815c123348c7283019e0d8a532184b54e41..14c15c4579cb156d148d28518c39a072675c91af 100644 (file)
@@ -442,7 +442,7 @@ static av_cold int cdtoons_decode_end(AVCodecContext *avctx)
     return 0;
 }
 
-AVCodec ff_cdtoons_decoder = {
+const AVCodec ff_cdtoons_decoder = {
     .name           = "cdtoons",
     .long_name      = NULL_IF_CONFIG_SMALL("CDToons video"),
     .type           = AVMEDIA_TYPE_VIDEO,
@@ -453,4 +453,5 @@ AVCodec ff_cdtoons_decoder = {
     .decode         = cdtoons_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
     .flush          = cdtoons_flush,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };