]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xbmenc.c
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
[ffmpeg] / libavcodec / xbmenc.c
index 8616372aa97f9efd15474e8b70db1b97173499d3..d6657dcd0862baaec8669fcec6ef954c1c3af29f 100644 (file)
@@ -26,7 +26,7 @@
 
 static av_cold int xbm_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;