From b309b60a0c7230fae29475e8924ff51f107c2563 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 5 Apr 2009 16:46:26 +0300 Subject: vo_xv: Fix context Shminfo table size This bug could cause problems if you used -dr with xv. The most likely symptom was crash at uninit. --- libvo/vo_xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 178c9c4ca9..86257a1179 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -116,7 +116,7 @@ struct xvctx { unsigned char *src, unsigned char *srca, int stride); #ifdef HAVE_SHM - XShmSegmentInfo Shminfo[NUM_BUFFERS]; + XShmSegmentInfo Shminfo[NUM_BUFFERS + 1]; int Shmem_Flag; #endif }; -- cgit v1.2.3