X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fbitpacked.c;h=57ae93b6b4cd33f17cc1290c360ff360c8683f1b;hb=1ab74bc19354aedfb9afe71515952254753a75cc;hp=f0b417d595b1d95bcd3c824eab536097e42e9f7b;hpb=217ad40aef9eeeff4e805dec3e980fb16aec3345;p=ffmpeg diff --git a/libavcodec/bitpacked.c b/libavcodec/bitpacked.c index f0b417d595b..57ae93b6b4c 100644 --- a/libavcodec/bitpacked.c +++ b/libavcodec/bitpacked.c @@ -33,12 +33,12 @@ struct BitpackedContext { int (*decode)(AVCodecContext *avctx, AVFrame *frame, - AVPacket *pkt); + const AVPacket *pkt); }; /* For this format, it's a simple passthrough */ static int bitpacked_decode_uyvy422(AVCodecContext *avctx, AVFrame *frame, - AVPacket *avpkt) + const AVPacket *avpkt) { int ret; @@ -56,7 +56,7 @@ static int bitpacked_decode_uyvy422(AVCodecContext *avctx, AVFrame *frame, } static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame, - AVPacket *avpkt) + const AVPacket *avpkt) { uint64_t frame_size = (uint64_t)avctx->width * (uint64_t)avctx->height * 20; uint64_t packet_size = (uint64_t)avpkt->size * 8; @@ -137,7 +137,7 @@ static int bitpacked_decode(AVCodecContext *avctx, void *data, int *got_frame, } -AVCodec ff_bitpacked_decoder = { +const AVCodec ff_bitpacked_decoder = { .name = "bitpacked", .long_name = NULL_IF_CONFIG_SMALL("Bitpacked"), .type = AVMEDIA_TYPE_VIDEO, @@ -146,4 +146,8 @@ AVCodec ff_bitpacked_decoder = { .init = bitpacked_init_decoder, .decode = bitpacked_decode, .capabilities = AV_CODEC_CAP_EXPERIMENTAL, + .codec_tags = (const uint32_t []){ + MKTAG('U', 'Y', 'V', 'Y'), + FF_CODEC_TAGS_END, + }, };