]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libopenjpegenc.c
Merge commit '074c769de93bf12e9f44d77e58a8c7167f9dfb13'
[ffmpeg] / libavcodec / libopenjpegenc.c
index c7769f7a02b3fd470177612ae98da8ce4bcff881..14579b68f31e8a5f186b71f4cb625adeda72f9af 100644 (file)
@@ -242,7 +242,7 @@ static av_cold int libopenjpeg_encode_init(AVCodecContext *avctx)
         goto fail;
     }
 
-    avctx->coded_frame = avcodec_alloc_frame();
+    avctx->coded_frame = av_frame_alloc();
     if (!avctx->coded_frame) {
         av_log(avctx, AV_LOG_ERROR, "Error allocating coded frame\n");
         goto fail;