[FFmpeg-devel] [PATCH] vda: unlock the pixel buffer base address.
u at pkh.me
Sat Jun 20 17:12:47 CEST 2015
On Sat, Jun 20, 2015 at 04:25:55PM +0200, Michael Niedermayer wrote:
> On Sat, Jun 20, 2015 at 01:19:29PM +0200, Sebastien Zwickert wrote:
> > The pixel buffer base address is never unlocked this causes
> > a bug with some pixel format types that are produced natively
> > by the hardware decoder: the first buffer was always used.
> > Unlock the pixel buffer base address fixes the issue.
> > ---
> > ffmpeg_vda.c | 2 ++
> > 1 file changed, 2 insertions(+)
FYI this is supposed to fix normal cases like:
ffmpeg -hwaccel vda -i natsuno.mp4 -t 15 out.avi
For some reason it's working if requesting
kCVPixelFormatType_420YpCbCr8Planar (yuv420p) but not
kCVPixelFormatType_422YpCbCr8: (uyvy422, default with ff) or
I can't confirm it fixes the issue because I haven't the hw to test right
now, but I believe it does :)
Thanks for the patch.
On a side note, it would be nice to allow a CLI option to request a
special pixel format to the decoder (don't we have that stuff already?).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 473 bytes
Desc: not available
More information about the ffmpeg-devel