diff options
author | Gwenole Beauchesne <gb.devel@gmail.com> | 2012-03-18 09:46:58 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-04-08 13:08:52 +0300 |
commit | 9cb150c9ab520eba5636bbcf925db6a70e67f3e5 (patch) | |
tree | 64222f328ee01908707bc57ac6d45b6f89ee1428 /libavfilter/vsink_nullsink.c | |
parent | 2ce7f4d4e6f3498f8a15a8bee3d124b589474197 (diff) | |
download | ffmpeg-9cb150c9ab520eba5636bbcf925db6a70e67f3e5.tar.gz |
hwaccel: mpeg2: decode first field, if requested.
If user opted to present fields as they come, then the first field
picture needs to be submitted to the HW for decoding. In particular,
this fixes MPEG-2 decoding of interlaced streams.
Tested on Intel Cedar Trail, Sandy Bridge and Ivy Bridge platforms.
Someone reported on the ffmpeg-devel@ list this also works on DXVA
(Windows) and other Linux platforms (NVIDIA, through the VA wrapper).
This also means a similar patch to non-hwaccel VDPAU may be necessary.
Note: I believe the SLICE_FLAG_ALLOW_FIELD is useless since the first
field shall always be submitted to the HW anyway. Nobody uses HW accels
(dxva, vaapi, vdpau, etc.) without that flag though.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavfilter/vsink_nullsink.c')
0 files changed, 0 insertions, 0 deletions