]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cljrenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / cljrenc.c
index e2db7a6129d2a11ef1c2f11f2facb4840d914914..0687e3004b83a85a7c3477b792b039c5b403207c 100644 (file)
@@ -41,8 +41,12 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         return ret;
     }
 
+#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
 
     init_put_bits(&pb, pkt->data, pkt->size);