X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fqtrleenc.c;h=29deb2123e13c23bab5d9af4ce5e0ea66c0e0bd0;hb=40cf1bbacc6220a0aa6bed5c331871d43f9ce370;hp=c455c829e701f5cf372f85b25e3d551b425d380a;hpb=5d3addb937946eca5391e40b5e6308e74ac6f77b;p=ffmpeg diff --git a/libavcodec/qtrleenc.c b/libavcodec/qtrleenc.c index c455c829e70..29deb2123e1 100644 --- a/libavcodec/qtrleenc.c +++ b/libavcodec/qtrleenc.c @@ -321,8 +321,12 @@ static int qtrle_encode_frame(AVCodecContext *avctx, AVPacket *pkt, av_picture_copy(&s->previous_frame, (const AVPicture *)pict, avctx->pix_fmt, avctx->width, avctx->height); +#if FF_API_CODED_FRAME +FF_DISABLE_DEPRECATION_WARNINGS avctx->coded_frame->key_frame = s->key_frame; avctx->coded_frame->pict_type = pict_type; +FF_ENABLE_DEPRECATION_WARNINGS +#endif if (s->key_frame) pkt->flags |= AV_PKT_FLAG_KEY;