• Anton Khirnov's avatar
    hwframe: Allow hwaccel frame allocators to align surface sizes · 3fdf50f9
    Anton Khirnov authored
    Hardware accelerated decoding generally uses AVHWFramesContext for pool
    allocation of hardware surfaces. These are setup to allocate surfaces
    aligned to hardware and hwaccel API requirements. Due to the
    architecture, av_hwframe_get_buffer() will return AVFrames with
    the dimensions set to the aligned sizes.
    
    This causes some decoders (like hevc) return these aligned size as
    final frame size, instead of cropping them to the video's actual
    dimensions. To make sure this doesn't happen, crop the frame to the
    size the decoder expects when ff_get_buffer() is called.
    Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
    3fdf50f9
Name
Last commit
Last update
avbuild Loading commit data...
avtools Loading commit data...
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...