]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pngenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / pngenc.c
index bbeee0199cf00ede7d5b1a187d3aa12bcb0898c8..df5e08f11e458e40d716faf794125c9f4b9a6705 100644 (file)
@@ -455,8 +455,12 @@ static av_cold int png_enc_init(AVCodecContext *avctx)
 {
     PNGEncContext *s = avctx->priv_data;
 
+#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
 
     ff_huffyuvencdsp_init(&s->hdsp);