]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pamenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / pamenc.c
index 483089afc115f4a40d9679344ce8e27fa159f19d..0be07e1f1b0eafb61cc74bcb560b8c8b1b6bbebf 100644 (file)
@@ -109,8 +109,12 @@ static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
 static av_cold int pam_encode_init(AVCodecContext *avctx)
 {
+#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
 
     return 0;
 }