diff options
author | James Almer <jamrial@gmail.com> | 2016-06-17 13:47:02 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-06-17 16:53:13 -0300 |
commit | 403a53c60e7c6046467ca078ca78210312879e14 (patch) | |
tree | c028d20d63eeb02f9210d002e55f5d5a4082092c | |
parent | 4efbeadadc6f5a107d5219cbd677b644e7cdca84 (diff) | |
download | ffmpeg-403a53c60e7c6046467ca078ca78210312879e14.tar.gz |
avcodec/ffv1enc: silence warning about deprecated coded_frame
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/ffv1enc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 9ee992144b..f2434e61aa 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -1289,7 +1289,11 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, av_frame_unref(p); if ((ret = av_frame_ref(p, pict)) < 0) return ret; +#if FF_API_CODED_FRAME +FF_DISABLE_DEPRECATION_WARNINGS avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; +FF_ENABLE_DEPRECATION_WARNINGS +#endif if (avctx->gop_size == 0 || f->picture_number % avctx->gop_size == 0) { put_rac(c, &keystate, 1); |