]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cpia.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / cpia.c
index bf09e1a5db7e6e81b62aba50c9793a9a56c33970..d88bd1aae7be556acbd955bb03a3313b5e75e900 100644 (file)
@@ -220,7 +220,7 @@ static av_cold int cpia_decode_end(AVCodecContext *avctx)
     return 0;
 }
 
-AVCodec ff_cpia_decoder = {
+const AVCodec ff_cpia_decoder = {
     .name           = "cpia",
     .long_name      = NULL_IF_CONFIG_SMALL("CPiA video format"),
     .type           = AVMEDIA_TYPE_VIDEO,
@@ -230,4 +230,5 @@ AVCodec ff_cpia_decoder = {
     .close          = cpia_decode_end,
     .decode         = cpia_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };