summaryrefslogtreecommitdiff
path: root/libavcodec/xwdenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/xwdenc.c')
-rw-r--r--libavcodec/xwdenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xwdenc.c b/libavcodec/xwdenc.c
index 87d6cff11b..54599a08a1 100644
--- a/libavcodec/xwdenc.c
+++ b/libavcodec/xwdenc.c
@@ -32,7 +32,7 @@
static av_cold int xwd_encode_init(AVCodecContext *avctx)
{
- avctx->coded_frame = avcodec_alloc_frame();
+ avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);