[FFmpeg-cvslog] Respect horizontal differencing predictor for 16bit gray tiff images.

Carl Eugen Hoyos git at videolan.org
Fri Jan 30 19:15:17 CET 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Jan 30 14:12:55 2015 +0100| [50144b91ea50757c57c94a3927bf14a6ffea0de8] | committer: Carl Eugen Hoyos

Respect horizontal differencing predictor for 16bit gray tiff images.

Fixes ticket #4291.

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

 libavcodec/tiff.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 8047f38..4fe1168 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1293,6 +1293,8 @@ static int decode_frame(AVCodecContext *avctx,
             ssize = s->width * soff;
             if (s->avctx->pix_fmt == AV_PIX_FMT_RGB48LE ||
                 s->avctx->pix_fmt == AV_PIX_FMT_RGBA64LE ||
+                s->avctx->pix_fmt == AV_PIX_FMT_GRAY16LE ||
+                s->avctx->pix_fmt == AV_PIX_FMT_YA16LE ||
                 s->avctx->pix_fmt == AV_PIX_FMT_GBRP16LE ||
                 s->avctx->pix_fmt == AV_PIX_FMT_GBRAP16LE) {
                 for (i = 0; i < s->height; i++) {
@@ -1302,6 +1304,8 @@ static int decode_frame(AVCodecContext *avctx,
                 }
             } else if (s->avctx->pix_fmt == AV_PIX_FMT_RGB48BE ||
                        s->avctx->pix_fmt == AV_PIX_FMT_RGBA64BE ||
+                       s->avctx->pix_fmt == AV_PIX_FMT_GRAY16BE ||
+                       s->avctx->pix_fmt == AV_PIX_FMT_YA16BE ||
                        s->avctx->pix_fmt == AV_PIX_FMT_GBRP16BE ||
                        s->avctx->pix_fmt == AV_PIX_FMT_GBRAP16BE) {
                 for (i = 0; i < s->height; i++) {



More information about the ffmpeg-cvslog mailing list