]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/proresenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / proresenc.c
index 3e99d106aceaa385fc6f2f12b0795173f90963fe..88e9482375e3458aaf90da2ebe8f478daf437bf3 100644 (file)
@@ -939,8 +939,12 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     uint8_t frame_flags;
 
     ctx->pic = pic;
+#if FF_API_CODED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
     avctx->coded_frame->key_frame = 1;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
 
     pkt_size = ctx->frame_size_upper_bound;