mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 06:02:12 +00:00
avfilter/qsvvpp: remove usage of deprecated fields
Added by mistake in 88b3841149
.
Reviewed-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
44813d66e2
commit
075dfc271b
@ -540,14 +540,19 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink, const AVFr
|
||||
mfxExtBuffer *extbuf = s->vpp_param.ExtParam[i];
|
||||
|
||||
if (extbuf->BufferId == MFX_EXTBUFF_VPP_DEINTERLACING) {
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
out_frame->frame->interlaced_frame = 0;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
out_frame->frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
out_frame->surface.Info.PicStruct =
|
||||
!out_frame->frame->interlaced_frame ? MFX_PICSTRUCT_PROGRESSIVE :
|
||||
(out_frame->frame->top_field_first ? MFX_PICSTRUCT_FIELD_TFF :
|
||||
!(out_frame->frame->flags & AV_FRAME_FLAG_INTERLACED) ? MFX_PICSTRUCT_PROGRESSIVE :
|
||||
((out_frame->frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST) ? MFX_PICSTRUCT_FIELD_TFF :
|
||||
MFX_PICSTRUCT_FIELD_BFF);
|
||||
|
||||
return out_frame;
|
||||
|
Loading…
Reference in New Issue
Block a user