[libbluray-devel] commit: Fix event queue size (john )

git at videolan.org git at videolan.org
Sat Oct 2 01:44:46 CEST 2010


libbluray | branch: master | john <john at anonymous.org> | Fri Oct  1 16:19:51 2010 -0700| [1aab213104ff0d4dddc64a33caf08aa6e07edcfe] | committer: john 

Fix event queue size

Index is masked to 0-31, but queue size is 31.  Size should be 32.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1aab213104ff0d4dddc64a33caf08aa6e07edcfe
---

 src/libbluray/bluray.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 5f332a6..c0f364f 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -55,7 +55,7 @@ typedef void*   (*fptr_p_void)();
 typedef struct bd_event_queue_s {
     unsigned in;  /* next free slot */
     unsigned out; /* next event */
-    BD_EVENT ev[MAX_EVENTS];
+    BD_EVENT ev[MAX_EVENTS+1];
 } BD_EVENT_QUEUE;
 
 typedef enum {



More information about the libbluray-devel mailing list