You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/ffv1enc: silence warning about deprecated coded_frame
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1289,7 +1289,11 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
av_frame_unref(p);
|
av_frame_unref(p);
|
||||||
if ((ret = av_frame_ref(p, pict)) < 0)
|
if ((ret = av_frame_ref(p, pict)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
#if FF_API_CODED_FRAME
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
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) {
|
if (avctx->gop_size == 0 || f->picture_number % avctx->gop_size == 0) {
|
||||||
put_rac(c, &keystate, 1);
|
put_rac(c, &keystate, 1);
|
||||||
|
Reference in New Issue
Block a user