commit 516eca404908b6e50021804fd63589ed43e2397c
Author: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Date:   Fri Nov 6 10:30:42 2009 +0000

    Handle up to 20 reference frames for H.264 (64 MB of GPU memory).

diff --git a/libvo/vo_vaapi.c b/libvo/vo_vaapi.c
index a1d74b1..e523089 100644
--- a/libvo/vo_vaapi.c
+++ b/libvo/vo_vaapi.c
@@ -62,7 +62,7 @@ LIBVO_EXTERN(vaapi)
 #define MAX_VIDEO_SURFACES       21 /* Maintain free surfaces in a queue (use least-recently-used) */
 #define NUM_VIDEO_SURFACES_MPEG2  3 /* 1 decode frame, up to  2 references */
 #define NUM_VIDEO_SURFACES_MPEG4  3 /* 1 decode frame, up to  2 references */
-#define NUM_VIDEO_SURFACES_H264  17 /* 1 decode frame, up to 16 references */
+#define NUM_VIDEO_SURFACES_H264  21 /* 1 decode frame, up to 20 references */
 #define NUM_VIDEO_SURFACES_VC1    3 /* 1 decode frame, up to  2 references */
 
 typedef void (*draw_alpha_func)(int x0, int y0, int w, int h,
