On Sun, 25 Jun 2017 14:50:32 -0400 Vittorio Giovara <vittorio.giov...@gmail.com> wrote:
> On Sat, Jun 24, 2017 at 12:18 PM, wm4 <nfx...@googlemail.com> wrote: > > On Sat, 24 Jun 2017 15:51:20 +0200 > > Luca Barbato <lu_z...@gentoo.org> wrote: > > > >> From: Anton Khirnov <an...@khirnov.net> > >> > >> --- > >> > >> Better subject welcome. It is currently folded in wm4 mix fixes set. > > It would be nice to have a short description about why this is > correct/needed in the commit log. Suggestion: hwframe: allow hwaccel frame allocators to align surface sizes 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. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel