Mercurial > libavcodec.hg
diff vaapi_h264.c @ 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 | 8a4984c5cacc |
children | fdafbcef52f5 |
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;