[FFmpeg-cvslog] avcodec/ffv1enc: silence warning about deprecated coded_frame

James Almer git at videolan.org
Fri Jun 17 21:55:46 CEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jun 17 13:47:02 2016 -0300| [403a53c60e7c6046467ca078ca78210312879e14] | committer: James Almer

avcodec/ffv1enc: silence warning about deprecated coded_frame

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=403a53c60e7c6046467ca078ca78210312879e14
---

 libavcodec/ffv1enc.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 9ee9921..f2434e6 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);



More information about the ffmpeg-cvslog mailing list