# HG changeset patch # User gb # Date 1271140981 0 # Node ID a01c36c52702f2315b27d023ceab73d61bddf4f4 # Parent 89c0de741fb324d5325ccc9cee548561eb85ead8 [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. diff -r 89c0de741fb3 -r a01c36c52702 vaapi_h264.c --- 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;