[FFmpeg-devel] [PATCH] Make 15-bpp MS Video 1 decoder not output 16-bpp

Michael Niedermayer michaelni
Mon Mar 9 16:14:47 CET 2009


On Mon, Mar 09, 2009 at 08:41:35AM +0200, Kostya wrote:
> On Sun, Mar 08, 2009 at 10:13:54PM +0100, Michael Niedermayer wrote:
> > On Sun, Mar 08, 2009 at 11:31:49PM +0200, Kostya wrote:
> > > 15-bpp MS Video 1 decoder first colour high bit is used
> > > to indicate coding mode (2 or 8-colour fill). Passing
> > > that value as such to current swscaler disrupt bit magic
> > > on conversion and you can see 2x2 red rectangles in
> > > different places.
> > > 
> > > Some samples like
> > > http://samples.mplayerhq.hu/V-codecs/CRAM/orbean.avi
> > > manifest that problem.
> > > 
> > 
> > > Attached SwScaler patch for reference purpose only.
> > 
> > the bug is that maska is not set to the remaining bit
> 
> How's this?

ok if tested

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

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- 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/20090309/6bdeebb2/attachment.pgp>



More information about the ffmpeg-devel mailing list