[FFmpeg-devel] [PATCH] VDPAU: Fix

Stephen Warren swarren
Mon Mar 29 23:27:00 CEST 2010


The attached patch modifies the ffmpeg/VDPAU code to capture:

* s->current_picture_ptr->field_poc[i]
* h->frame_num

... at the start of decoding a picture instead of at the end. This is
required to make stream "mmco01".264" corruption-free using VDPAU. (In my
previous email, I meant to say that patch corrected the DPB content for
that stream).

The ffmpeg/hwaccel [VAAPI] code already captures those fields, and all
other picture-level information, at this point in time. Indeed, it seems
like VDPAU should probably move most of the body of
ff_vdpau_h264_picture_complete into ff_vdpau_h264_picture_start to match
hwaccel/VAAPI code. However, I'd rather take small steps, since there's
the theoretical possibility of introducing regressions without a lot of
testing.

-- 
nvpublic

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdpau-foc-frame_num.patch
Type: application/octet-stream
Size: 3155 bytes
Desc: vdpau-foc-frame_num.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100329/403dabd0/attachment.obj>



More information about the ffmpeg-devel mailing list