changeset 11624:a01c36c52702 libavcodec

[VA-API] Fix long-term reference frames addition to the DPB. This fixes MR2_MW_A/MR2_TANDBERG_E on Intel Ironlake and NVIDIA HW.
author gb
date Tue, 13 Apr 2010 06:43:01 +0000
parents 89c0de741fb3
children 1492bdc1d9d0
files vaapi_h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vaapi_h264.c	Tue Apr 13 00:48:49 2010 +0000
+++ b/vaapi_h264.c	Tue Apr 13 06:43:01 2010 +0000
@@ -136,7 +136,7 @@
             return -1;
     }
 
-    for (i = 0; i < h->long_ref_count; i++) {
+    for (i = 0; i < 16; i++) {
         Picture * const pic = h->long_ref[i];
         if (pic && pic->reference && dpb_add(&dpb, pic) < 0)
             return -1;