]> git.sesse.net Git - ffmpeg/commitdiff
Revert "lavc/tiff: correct the default value of YCbCrSubsampling to 2x2"
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 25 Sep 2019 22:34:44 +0000 (00:34 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 25 Sep 2019 22:34:44 +0000 (00:34 +0200)
This reverts commit eb5d0f18ff609ba2280cea4e2c6286d216c8756b.

Together with 89f464e9, it breaks decoding of tiff files like fate-suite/exif/image_small.tiff

libavcodec/tiff.c

index c8b2a3680ec9aaae117f2862d47a4323e836f8e7..9f24796a8865c02a5aea0f932d819ddcaf63f553 100644 (file)
@@ -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)