[FFmpeg-devel] [PATCH 1/2] avcodec: Don't assume separate u and v planes in ff_alloc_picture

Philip Langdale philipl at overt.org
Tue Nov 14 17:55:18 EET 2017


On Tue, 14 Nov 2017 16:29:06 +0100
Hendrik Leppkes <h.leppkes at gmail.com> wrote:

> On Tue, Nov 14, 2017 at 4:24 PM, Philip Langdale <philipl at overt.org>
> wrote:
> >
> > I didn't bother investigating why, but vdpau avoids this by having
> > all linesizes set to zero. Cute.  
> 
> Thats probably what most hwaccels do, the hardware surface has its own
> descriptor, so the linesize is not used.

Indeed. I took a look at the get_buffer implementations and cuda is
special in that it sets the data and linesize values to reflect the
underlying pixfmt. No good deed goes unpunished.

--phil


More information about the ffmpeg-devel mailing list