Browse code

avcodec/ffv1enc: silence warning about deprecated coded_frame

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

James Almer authored on 2016/06/18 01:47:02
Showing 1 changed files
... ...
@@ -1289,7 +1289,11 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
1289 1289
     av_frame_unref(p);
1290 1290
     if ((ret = av_frame_ref(p, pict)) < 0)
1291 1291
         return ret;
1292
+#if FF_API_CODED_FRAME
1293
+FF_DISABLE_DEPRECATION_WARNINGS
1292 1294
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
1295
+FF_ENABLE_DEPRECATION_WARNINGS
1296
+#endif
1293 1297
 
1294 1298
     if (avctx->gop_size == 0 || f->picture_number % avctx->gop_size == 0) {
1295 1299
         put_rac(c, &keystate, 1);