summaryrefslogtreecommitdiff
path: root/libavcodec/cljrenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cljrenc.c')
-rw-r--r--libavcodec/cljrenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/cljrenc.c b/libavcodec/cljrenc.c
index e2db7a6129..0687e3004b 100644
--- a/libavcodec/cljrenc.c
+++ b/libavcodec/cljrenc.c
@@ -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);