summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-24 21:49:08 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-24 21:49:08 +0000
commita0f0db79f4be6a293de64e63a055f7598b6826ac (patch)
treec4c5901ac49f4bef60d80a44566203ef3ca9f4b9
parentc266ad4de429e31a92b98e3ef31661d09802f8a8 (diff)
downloadmpv-a0f0db79f4be6a293de64e63a055f7598b6826ac.tar.bz2
mpv-a0f0db79f4be6a293de64e63a055f7598b6826ac.tar.xz
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
-rw-r--r--libvo/vo_vdpau.c2
1 files changed, 1 insertions, 1 deletions
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,