diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-12-09 13:30:28 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-12-09 13:30:28 +0000 |
commit | 46f9dcc3ee03c6698313e85cbdc9b40e5d23d1af (patch) | |
tree | 161c91c011d973bc8596a677b7bb1ab1d5aa9804 | |
parent | 2c04fc1f8ca902aaa077f377db20d6a25aeb37e5 (diff) | |
download | ffmpeg-46f9dcc3ee03c6698313e85cbdc9b40e5d23d1af.tar.gz |
Fix 16 bit cscd samples, 16 bit raw means RGB555 on Windows, and the original
cscd codec is for windows.
Originally committed as revision 7266 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/cscd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c index ad738bf0ef..d8733d6dd7 100644 --- a/libavcodec/cscd.c +++ b/libavcodec/cscd.c @@ -220,7 +220,7 @@ static int decode_init(AVCodecContext *avctx) { } avctx->has_b_frames = 0; switch (avctx->bits_per_sample) { - case 16: avctx->pix_fmt = PIX_FMT_RGB565; break; + case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; case 24: avctx->pix_fmt = PIX_FMT_BGR24; break; case 32: avctx->pix_fmt = PIX_FMT_RGBA32; break; default: |