]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xfaceenc.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / xfaceenc.c
index e737f6d9d5e0b8458a16b36b12681e2979f1a05b..e213c9d70a942f2817e2e11301dc0f52b9c900a7 100644 (file)
@@ -125,7 +125,7 @@ static void encode_block(char *bitmap, int w, int h, int level, ProbRangesQueue
 
 static av_cold int xface_encode_init(AVCodecContext *avctx)
 {
-    avctx->coded_frame = avcodec_alloc_frame();
+    avctx->coded_frame = av_frame_alloc();
     if (!avctx->coded_frame)
         return AVERROR(ENOMEM);
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;