You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
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
This commit is contained in:
@ -220,7 +220,7 @@ static int decode_init(AVCodecContext *avctx) {
|
|||||||
}
|
}
|
||||||
avctx->has_b_frames = 0;
|
avctx->has_b_frames = 0;
|
||||||
switch (avctx->bits_per_sample) {
|
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 24: avctx->pix_fmt = PIX_FMT_BGR24; break;
|
||||||
case 32: avctx->pix_fmt = PIX_FMT_RGBA32; break;
|
case 32: avctx->pix_fmt = PIX_FMT_RGBA32; break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user