[FFmpeg-devel] [PATCH 2/2] ffv1dec: Ensure that pixel format constraints are respected

Michael Niedermayer michael at niedermayer.cc
Wed Jul 18 03:52:13 EEST 2018


On Tue, Jul 17, 2018 at 11:58:06PM +0200, Hendrik Leppkes wrote:
> On Tue, Jul 17, 2018 at 11:54 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> >
> > 2018-07-17 21:39 GMT+02:00, Vittorio Giovara <vittorio.giovara at gmail.com>:
> > > YUV410P requires that sizes are divisible by 4.
> >
> > Do you mean that AV_PIX_FMT_YUV410P requires it?
> > Where is this documented?
> >
> 

> Its a consequence of the subsampling factor.

this does not follow from what you write below. But more so this is not
how pixel formats were implemented in FFmpeg.
Where does this idea come from ?


> 4:1:0 is one-fourth the
> horizontal resolution and half the vertical resolution, as such the
> width has to be a multiple of 4 for that to result in a valid chroma
> dimension.
> 
> - Hendrik
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180718/d06ad97f/attachment.sig>


More information about the ffmpeg-devel mailing list