Mercurial > libavcodec.hg
changeset 4290:e7dfc2743e26 libavcodec
Fix 16 bit cscd samples, 16 bit raw means RGB555 on Windows, and the original
cscd codec is for windows.
author | reimar |
---|---|
date | Sat, 09 Dec 2006 13:30:28 +0000 |
parents | b2a291ea653f |
children | 0c090df061f8 |
files | cscd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cscd.c Sat Dec 09 13:13:45 2006 +0000 +++ b/cscd.c Sat Dec 09 13:30:28 2006 +0000 @@ -220,7 +220,7 @@ } 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: