[FFmpeg-devel] MXF D10 regression tests

Michael Niedermayer michaelni
Thu Mar 19 00:48:49 CET 2009


On Thu, Mar 19, 2009 at 12:20:51AM +0100, Reimar D?ffinger wrote:
> On Wed, Mar 18, 2009 at 11:35:26PM +0100, Michael Niedermayer wrote:
> > > +        ff_fill_linesize(&picture, s->pix_fmt, w, stride_align);
> > > +
> > 
> > does something like:
> > retry:
> >     ff_fill_linesize(&picture, s->pix_fmt, w);
> >     if(any linesize % stride_align){
> >         w+= w&~(w-1);
> >         goto retry;
> >     }
> > 
> > work?
> 
> I can say for sure it would be a bit more ugly, like this it would be an
> endless loop for the paletted etc. formats (though if it makes sense too
> set a linesize for the palette is a different question).

?
pal with linesize=0 would have if(0%16) and that should not loop endlessly
am i missing something?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090319/4453f304/attachment.pgp>



More information about the ffmpeg-devel mailing list