Browse Source

[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.

Originally committed as revision 22869 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Gwenole Beauchesne 16 years ago
parent
commit
b0941dee3c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vaapi_h264.c

+ 1
- 1
libavcodec/vaapi_h264.c View File

@@ -136,7 +136,7 @@ static int fill_vaapi_ReferenceFrames(VAPictureParameterBufferH264 *pic_param,
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;


Loading…
Cancel
Save