]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegvideo_enc.c
avcodec: Remove deprecated AVCodecContext.coded_frame
[ffmpeg] / libavcodec / mpegvideo_enc.c
index 34cad92895b8b03f587c9c86c1f0f0cd6f88c5e4..53297cb788b230e040087e33943509483b07eea7 100644 (file)
@@ -1605,12 +1605,6 @@ static void frame_end(MpegEncContext *s)
     if (s->pict_type!= AV_PICTURE_TYPE_B)
         s->last_non_b_pict_type = s->pict_type;
 
-#if FF_API_CODED_FRAME
-FF_DISABLE_DEPRECATION_WARNINGS
-    av_frame_unref(s->avctx->coded_frame);
-    av_frame_copy_props(s->avctx->coded_frame, s->current_picture.f);
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
 #if FF_API_ERROR_FRAME
 FF_DISABLE_DEPRECATION_WARNINGS
     memcpy(s->current_picture.f->error, s->current_picture.encoding_error,