]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/tiffenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / tiffenc.c
index fbdb8248fac89aa19e3b2a6d2e8042dac579e4cc..f762ab8770e4cee70b522bfd787280d0d8733246 100644 (file)
@@ -490,8 +490,12 @@ fail:
 
 static av_cold int encode_init(AVCodecContext *avctx)
 {
+#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
 
     return 0;
 }