]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cinepakenc.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / cinepakenc.c
index 9eaa972a9c5add6f44c3b292e1e6b26a4289b2af..422cb3f8e96ee46070d25f2dc8c642b1c68f3d56 100644 (file)
@@ -182,7 +182,7 @@ static av_cold int cinepak_encode_init(AVCodecContext *avctx)
         return AVERROR(ENOMEM);
 
     if (!(s->codebook_closest = av_malloc_array((avctx->width * avctx->height) >> 2, sizeof(*s->codebook_closest))))
-        return AVERROR(ENOMEM);;
+        return AVERROR(ENOMEM);
 
     for (x = 0; x < (avctx->pix_fmt == AV_PIX_FMT_RGB24 ? 4 : 3); x++)
         if (!(s->pict_bufs[x] = av_malloc((avctx->pix_fmt == AV_PIX_FMT_RGB24 ? 6 : 4) * (avctx->width * avctx->height) >> 2)))
@@ -1178,7 +1178,7 @@ static av_cold int cinepak_encode_end(AVCodecContext *avctx)
     return 0;
 }
 
-AVCodec ff_cinepak_encoder = {
+const AVCodec ff_cinepak_encoder = {
     .name           = "cinepak",
     .long_name      = NULL_IF_CONFIG_SMALL("Cinepak"),
     .type           = AVMEDIA_TYPE_VIDEO,