From a0f0db79f4be6a293de64e63a055f7598b6826ac Mon Sep 17 00:00:00 2001 From: cehoyos Date: Tue, 24 Mar 2009 21:49:08 +0000 Subject: New VDPAU deinterlacing code needs one reference surface less for software decoding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29053 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index a527f16dfd..ba009442fd 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -881,7 +881,7 @@ static uint32_t draw_image(mp_image_t *mpi) 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, -- cgit v1.2.3