Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
... | ... |
@@ -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); |