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

Stephen Warren swarren
Mon Mar 29 23:22:37 CEST 2010


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.

-- 
nvpublic

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdpau-long-refs.patch
Type: application/octet-stream
Size: 535 bytes
Desc: vdpau-long-refs.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100329/c1825efc/attachment.obj>



More information about the ffmpeg-devel mailing list