[FFmpeg-cvslog] avcodec/qdrw: support 16bpp files with bppcnt == 2 && bpp == 8

Piotr Bandurski git at videolan.org
Sun Nov 5 11:51:57 EET 2017


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Wed Mar 22 20:34:28 2017 +0100| [6ea77115324c638c4a76e9902ac83f9625834bdd] | committer: Paul B Mahol

avcodec/qdrw: support 16bpp files with bppcnt == 2 && bpp == 8

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ea77115324c638c4a76e9902ac83f9625834bdd
---

 libavcodec/qdrw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list