changeset 29054:d865fa57c316

10l: Don't use MP_IMGFIELD_TOP_FIRST if MP_IMGFIELD_ORDERED is not set.
author cehoyos
date Sun, 29 Mar 2009 11:15:22 +0000
parents 710f515687e8
children 2a1cd1455121
files libvo/vo_vdpau.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Sat Mar 28 22:54:01 2009 +0000
+++ b/libvo/vo_vdpau.c	Sun Mar 29 11:15:22 2009 +0000
@@ -892,7 +892,10 @@
                                                     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;