summaryrefslogtreecommitdiffstats
path: root/libavcodec/asvenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/asvenc.c')
-rw-r--r--libavcodec/asvenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index af0687a..3b0a4ac 100644
--- a/libavcodec/asvenc.c
+++ b/libavcodec/asvenc.c
@@ -282,8 +282,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
int i;
const int scale = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
+#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
ff_asv_common_init(avctx);
ff_fdctdsp_init(&a->fdsp, avctx);
OpenPOWER on IntegriCloud