diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2017-03-22 20:34:28 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-11-05 10:49:17 +0100 |
commit | 6ea77115324c638c4a76e9902ac83f9625834bdd (patch) | |
tree | 94760f881938444473545c7675738b062f2bb7a6 /libavcodec | |
parent | 3f4fccf4d6d2a9a6db46bfca0e6fb648d8e3708b (diff) | |
download | ffmpeg-6ea77115324c638c4a76e9902ac83f9625834bdd.tar.gz |
avcodec/qdrw: support 16bpp files with bppcnt == 2 && bpp == 8
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qdrw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c index 3a0bc6f760..82cc528a30 100644 --- a/libavcodec/qdrw.c +++ b/libavcodec/qdrw.c @@ -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; |