From dbd3dbb4766126a806e7aeaa3e2dfbc3557f66f9 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 26 Sep 2019 00:34:44 +0200 Subject: [PATCH] Revert "lavc/tiff: correct the default value of YCbCrSubsampling to 2x2" This reverts commit eb5d0f18ff609ba2280cea4e2c6286d216c8756b. Together with 89f464e9, it breaks decoding of tiff files like fate-suite/exif/image_small.tiff --- libavcodec/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index c8b2a3680e..9f24796a88 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -2065,7 +2065,7 @@ static av_cold int tiff_init(AVCodecContext *avctx) s->width = 0; s->height = 0; s->subsampling[0] = - s->subsampling[1] = 2; + s->subsampling[1] = 1; s->avctx = avctx; ff_lzw_decode_open(&s->lzw); if (!s->lzw)