]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qtrleenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / qtrleenc.c
index c455c829e701f5cf372f85b25e3d551b425d380a..29deb2123e13c23bab5d9af4ce5e0ea66c0e0bd0 100644 (file)
@@ -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;