Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2017-03-22 22:34:28 +0300
committerPaul B Mahol <onemda@gmail.com>2017-11-05 12:49:17 +0300
commit6ea77115324c638c4a76e9902ac83f9625834bdd (patch)
tree94760f881938444473545c7675738b062f2bb7a6 /libavcodec/qdrw.c
parent3f4fccf4d6d2a9a6db46bfca0e6fb648d8e3708b (diff)
avcodec/qdrw: support 16bpp files with bppcnt == 2 && bpp == 8
Diffstat (limited to 'libavcodec/qdrw.c')
-rw-r--r--libavcodec/qdrw.c2
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;