From 1419aac22aa4b1ce34ee7962822ae0d52fbf454c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 23 Apr 2015 22:06:14 +0200 Subject: mp_image: remove some unused interlacing flags MP_IMGFIELD_TOP/MP_IMGFIELD_BOTTOM were completely unused, and MP_IMGFIELD_ORDERED was always set (even though vf_vdpaupp.c strangely checked for the latter). --- video/filter/vf_vdpaupp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video/filter') diff --git a/video/filter/vf_vdpaupp.c b/video/filter/vf_vdpaupp.c index 4db6ab9186..26c1eef5ca 100644 --- a/video/filter/vf_vdpaupp.c +++ b/video/filter/vf_vdpaupp.c @@ -92,9 +92,7 @@ static bool output_field(struct vf_instance *vf, int pos) frame->field = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME; if (p->opts.deint) { - int top_field_first = 1; - if (mpi->fields & MP_IMGFIELD_ORDERED) - top_field_first = !!(mpi->fields & MP_IMGFIELD_TOP_FIRST); + int top_field_first = !!(mpi->fields & MP_IMGFIELD_TOP_FIRST); frame->field = top_field_first ^ (pos & 1) ? VDP_VIDEO_MIXER_PICTURE_STRUCTURE_BOTTOM_FIELD: VDP_VIDEO_MIXER_PICTURE_STRUCTURE_TOP_FIELD; -- cgit v1.2.3