summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_h264.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-04-13 06:43:01 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-04-13 06:43:01 +0000
commitb0941dee3cf3f98389c0caa7c354bb52fa9ae3b6 (patch)
treeeed1acdb3eee4f3cd3e91bdc6eab4418e2302f0c /libavcodec/vaapi_h264.c
parentefd8b009ff2e3643243a890faea763aa33e5a019 (diff)
[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
Diffstat (limited to 'libavcodec/vaapi_h264.c')
-rw-r--r--libavcodec/vaapi_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
index 52f836330d..6d4251a263 100644
--- a/libavcodec/vaapi_h264.c
+++ b/libavcodec/vaapi_h264.c
@@ -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;