[FFmpeg-devel] [PATCH]Fix linesize for pix_fmt pal8
Stefano Sabatini
stefasab at gmail.com
Sat Jun 16 01:39:45 CEST 2012
On date Thursday 2012-06-14 06:42:04 +0000, Carl Eugen Hoyos encoded:
> Stefano Sabatini <stefasab <at> gmail.com> writes:
>
> > > + else if (desc->flags & PIX_FMT_PAL) {
> > > + // 2 would be sufficient for QuickTime,
> > > + // but 4 works and is what avi and mov samples use
> > > + linesize = FFALIGN(linesize, 4);
> > > + }
> > > return linesize;
> >
> > Can you elaborate why this is needed?
>
> $ ./ffmpeg -i tests/lena.pnm -s 257x257 -pix_fmt pal8 -vcodec rawvideo out.avi
> $ ./ffplay out.avi
Please give me a day or two to have a look at it.
--
FFmpeg = Free and Frightening Mega Philosofic Educated God
More information about the ffmpeg-devel
mailing list