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

Michael Niedermayer michaelni
Sun Mar 8 22:13:54 CET 2009


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

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

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- 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/20090308/ab7cea12/attachment.pgp>



More information about the ffmpeg-devel mailing list