mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_coreimage: silence AVFrame deprecation warnings
Deprecation warning need to be disabled here as we set deprecated fields.
This commit is contained in:
parent
799503f4bb
commit
10b3edbe24
|
@ -297,14 +297,18 @@ static int request_frame(AVFilterLink *link)
|
||||||
|
|
||||||
frame->pts = ctx->pts;
|
frame->pts = ctx->pts;
|
||||||
frame->duration = 1;
|
frame->duration = 1;
|
||||||
|
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||||
|
frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||||
|
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
#if FF_API_FRAME_KEY
|
#if FF_API_FRAME_KEY
|
||||||
frame->key_frame = 1;
|
frame->key_frame = 1;
|
||||||
#endif
|
#endif
|
||||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
|
||||||
#if FF_API_INTERLACED_FRAME
|
#if FF_API_INTERLACED_FRAME
|
||||||
frame->interlaced_frame = 0;
|
frame->interlaced_frame = 0;
|
||||||
#endif
|
#endif
|
||||||
frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
frame->pict_type = AV_PICTURE_TYPE_I;
|
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||||
frame->sample_aspect_ratio = ctx->sar;
|
frame->sample_aspect_ratio = ctx->sar;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue