changeset 29018:b04ff8b244bb

New VDPAU deinterlacing code needs one reference surface less for software decoding.
author cehoyos
date Tue, 24 Mar 2009 21:49:08 +0000
parents c9a2d95c580a
children d812d0ad689f
files libvo/vo_vdpau.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Tue Mar 24 21:47:56 2009 +0000
+++ b/libvo/vo_vdpau.c	Tue Mar 24 21:49:08 2009 +0000
@@ -881,7 +881,7 @@
         VdpStatus vdp_st;
         void *destdata[3] = {mpi->planes[0], mpi->planes[2], mpi->planes[1]};
         struct vdpau_render_state *rndr = get_surface(deint_counter);
-        deint_counter = (deint_counter + 1) & 3;
+        deint_counter = (deint_counter + 1) % 3;
         vid_surface_num = rndr - surface_render;
         vdp_st = vdp_video_surface_put_bits_y_cb_cr(rndr->surface,
                                                     VDP_YCBCR_FORMAT_YV12,