[FFmpeg-cvslog] r22869 - trunk/libavcodec/vaapi_h264.c

gb subversion
Tue Apr 13 08:43:01 CEST 2010


Author: gb
Date: Tue Apr 13 08:43:01 2010
New Revision: 22869

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

Modified:
   trunk/libavcodec/vaapi_h264.c

Modified: trunk/libavcodec/vaapi_h264.c
==============================================================================
--- trunk/libavcodec/vaapi_h264.c	Tue Apr 13 03:19:59 2010	(r22868)
+++ trunk/libavcodec/vaapi_h264.c	Tue Apr 13 08:43:01 2010	(r22869)
@@ -136,7 +136,7 @@ static int fill_vaapi_ReferenceFrames(VA
             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;



More information about the ffmpeg-cvslog mailing list