summaryrefslogtreecommitdiff
path: root/libavcodec/y41penc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/y41penc.c')
-rw-r--r--libavcodec/y41penc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index 41666ccf33..8f67944adf 100644
--- a/libavcodec/y41penc.c
+++ b/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) {