comparison 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
comparison
equal deleted inserted replaced
11623:89c0de741fb3 11624:a01c36c52702
134 Picture * const pic = h->short_ref[i]; 134 Picture * const pic = h->short_ref[i];
135 if (pic && pic->reference && dpb_add(&dpb, pic) < 0) 135 if (pic && pic->reference && dpb_add(&dpb, pic) < 0)
136 return -1; 136 return -1;
137 } 137 }
138 138
139 for (i = 0; i < h->long_ref_count; i++) { 139 for (i = 0; i < 16; i++) {
140 Picture * const pic = h->long_ref[i]; 140 Picture * const pic = h->long_ref[i];
141 if (pic && pic->reference && dpb_add(&dpb, pic) < 0) 141 if (pic && pic->reference && dpb_add(&dpb, pic) < 0)
142 return -1; 142 return -1;
143 } 143 }
144 return 0; 144 return 0;