]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/huffyuvenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / huffyuvenc.c
index 4f73fd868aa33e79be1052474497318077b4341b..a86f880148855dc5a0a8a72a1df477971e6fadd5 100644 (file)
@@ -157,8 +157,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
     if (!avctx->extradata || !avctx->stats_out)
         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
 
     switch (avctx->pix_fmt) {
     case AV_PIX_FMT_YUV420P: