changeset 11554:30f5bf824f04 libavcodec

Fix VDPAU for H.264 streams with long reference frames. Patch by Stephen Warren.
author cehoyos
date Tue, 30 Mar 2010 07:52:44 +0000
parents d35c3095f96b
children e603f624b03f
files vdpau.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vdpau.c	Mon Mar 29 22:17:01 2010 +0000
+++ b/vdpau.c	Tue Mar 30 07:52:44 2010 +0000
@@ -54,7 +54,7 @@
 
     for (list = 0; list < 2; ++list) {
         Picture **lp = list ? h->long_ref : h->short_ref;
-        int ls = list ? h->long_ref_count : h->short_ref_count;
+        int ls = list ? 16 : h->short_ref_count;
 
         for (i = 0; i < ls; ++i) {
             pic = lp[i];