[FFmpeg-devel] [PATCH] VDPAU: Fix H.264 streams with long reference frames

elupus elupus
Wed Mar 31 00:33:30 CEST 2010


On Mon, 29 Mar 2010 14:22:37 -0700, Stephen Warren wrote:

> Attached is a patch that fixes the ffmpeg/VDPAU for H.264 streams with long
> reference frames. The issue is that h->long_ref may be sparse, so one needs
> to scan the entire array rather than just the first h->long_ref_count entries.
> 
> Most (all?) code in the reset of ffmpeg always scans all 16 entries.
> 
> The VAAPI code in vaapi_h264.c:fill_vaapi_ReferenceFrames() probably needs
> the same fix. However, I don't have VAAPI-capable HW to test.
> 
> This fixes a test stream named "mmco01.264" for me.

I'd suspect the dxva could would need the same? It also uses the
long_ref_count when defining references.

Joakim




More information about the ffmpeg-devel mailing list