From aa549a325ba265018b6a46a3c1c5e08b160d596d Mon Sep 17 00:00:00 2001 From: cehoyos Date: Sun, 29 Mar 2009 11:15:22 +0000 Subject: 10l: Don't use MP_IMGFIELD_TOP_FIRST if MP_IMGFIELD_ORDERED is not set. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29093 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 963cf17bb9..b727236df2 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -892,7 +892,10 @@ static uint32_t draw_image(mp_image_t *mpi) mpi->stride); // pitch CHECK_ST_ERROR("Error when calling vdp_video_surface_put_bits_y_cb_cr") } + if (mpi->fields & MP_IMGFIELD_ORDERED) top_field_first = !!(mpi->fields & MP_IMGFIELD_TOP_FIRST); + else + top_field_first = 1; video_to_output_surface(); return VO_TRUE; -- cgit v1.2.3