]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v308enc.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / v308enc.c
index e88f1f464814eb503c7fdcfc85c09437c8a09419..919f0ea10b1ba80ceaf2d8049475ee0fdc32c0ca 100644 (file)
@@ -68,19 +68,12 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     return 0;
 }
 
-static av_cold int v308_encode_close(AVCodecContext *avctx)
-{
-    return 0;
-}
-
-AVCodec ff_v308_encoder = {
+const AVCodec ff_v308_encoder = {
     .name         = "v308",
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:4:4"),
     .type         = AVMEDIA_TYPE_VIDEO,
     .id           = AV_CODEC_ID_V308,
     .init         = v308_encode_init,
     .encode2      = v308_encode_frame,
-    .close        = v308_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE },
-    .capabilities = AV_CODEC_CAP_INTRA_ONLY,
 };