# HG changeset patch # User cehoyos # Date 1237931348 0 # Node ID b04ff8b244bbdac6d5496109541026992dcf6f3f # Parent c9a2d95c580a6ca3b039c339e13a3b4092a56686 New VDPAU deinterlacing code needs one reference surface less for software decoding. diff -r c9a2d95c580a -r b04ff8b244bb libvo/vo_vdpau.c --- 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,