]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/lclenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / lclenc.c
index 6edde076b32ba9f32615dd9e81e0416a62b36914..a73f6d6fedb6a828bcf453dc7c7d934f78d0078b 100644 (file)
@@ -138,8 +138,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
     if (!avctx->extradata)
         return AVERROR(ENOMEM);
 
+#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
 
     // Will be user settable someday
     c->compression = 6;