]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xbmenc.c
tiffdec: remove an unneeded variable
[ffmpeg] / libavcodec / xbmenc.c
index 8616372aa97f9efd15474e8b70db1b97173499d3..517e569a60ab8fefe7e47649e3297de0c2f5d7a7 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;
@@ -69,7 +69,7 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
 static av_cold int xbm_encode_close(AVCodecContext *avctx)
 {
-    av_freep(&avctx->coded_frame);
+    av_frame_free(&avctx->coded_frame);
 
     return 0;
 }