summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/y41penc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/libavcodec/y41penc.c')
-rw-r--r--ffmpeg/libavcodec/y41penc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/libavcodec/y41penc.c b/ffmpeg/libavcodec/y41penc.c
index 1a8f0fb..8f67944 100644
--- a/ffmpeg/libavcodec/y41penc.c
+++ b/ffmpeg/libavcodec/y41penc.c
@@ -30,7 +30,7 @@ static av_cold int y41p_encode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
}
- avctx->coded_frame = avcodec_alloc_frame();
+ avctx->coded_frame = av_frame_alloc();
avctx->bits_per_coded_sample = 12;
if (!avctx->coded_frame) {
@@ -91,6 +91,7 @@ static av_cold int y41p_encode_close(AVCodecContext *avctx)
AVCodec ff_y41p_encoder = {
.name = "y41p",
+ .long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_Y41P,
.init = y41p_encode_init,
@@ -98,5 +99,4 @@ AVCodec ff_y41p_encoder = {
.close = y41p_encode_close,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
AV_PIX_FMT_NONE },
- .long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
};