[FFmpeg-devel] MXF D10 regression tests

Reimar Döffinger Reimar.Doeffinger
Thu Mar 19 00:20:51 CET 2009


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).




More information about the ffmpeg-devel mailing list