[FFmpeg-devel] [PATCH]Abide sunrast specification regarding 32 bit

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Mar 9 09:29:14 CET 2012


Michael Niedermayer <michaelni <at> gmx.at> writes:

> >  case 32:
> > -    avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB0 : PIX_FMT_BGR0;
> > +    avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_0RGB : PIX_FMT_0BGR;
> 
> its maybe overkill for this but one could check if either of the
> channels is constant (0/ff) and consider that the 0 one.

Sounds a bit like overkill;-)

Patch applied.

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list