]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/svq1enc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / svq1enc.c
index ebbc54e589e255f38552a50be37f0297c3d3a867..24251ff02c8ac44c366f506ce3d0ad1ac3482ef8 100644 (file)
@@ -609,8 +609,12 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         s->pict_type = AV_PICTURE_TYPE_I;
     s->quality = pict->quality;
 
+#if FF_API_CODED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
     avctx->coded_frame->pict_type = s->pict_type;
     avctx->coded_frame->key_frame = s->pict_type == AV_PICTURE_TYPE_I;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
 
     sd = av_packet_new_side_data(pkt, AV_PKT_DATA_QUALITY_FACTOR, sizeof(int));
     if (!sd)