mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/qdrw: support 16bpp files with bppcnt == 2 && bpp == 8
This commit is contained in:
parent
3f4fccf4d6
commit
6ea7711532
@ -434,7 +434,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
av_log(avctx, AV_LOG_DEBUG, "bppcount %d bpp %d\n", bppcnt, bpp);
|
||||
if (bppcnt == 3 && bpp == 8) {
|
||||
avctx->pix_fmt = AV_PIX_FMT_RGB24;
|
||||
} else if (bppcnt == 3 && bpp == 5) {
|
||||
} else if (bppcnt == 3 && bpp == 5 || bppcnt == 2 && bpp == 8) {
|
||||
avctx->pix_fmt = AV_PIX_FMT_RGB555;
|
||||
} else if (bppcnt == 4 && bpp == 8) {
|
||||
avctx->pix_fmt = AV_PIX_FMT_ARGB;
|
||||
|
Loading…
Reference in New Issue
Block a user