X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Frawenc.c;h=cc55b3a875d1eaea65bb7feddba3527ecab01406;hb=40cf1bbacc6220a0aa6bed5c331871d43f9ce370;hp=a360c3449698d5fb8e74915ec2c26e96bd5dccbe;hpb=5d3addb937946eca5391e40b5e6308e74ac6f77b;p=ffmpeg diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index a360c344969..cc55b3a875d 100644 --- a/libavcodec/rawenc.c +++ b/libavcodec/rawenc.c @@ -35,8 +35,12 @@ static av_cold int raw_encode_init(AVCodecContext *avctx) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt); +#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 avctx->bits_per_coded_sample = av_get_bits_per_pixel(desc); if(!avctx->codec_tag) avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);