Revision ac8d6f12

View differences:

libavcodec/tiffenc.c
255 255
        s->photometric_interpretation = 3;
256 256
        break;
257 257
    case PIX_FMT_MONOBLACK:
258
        s->bpp = 1;
259
        s->photometric_interpretation = 1;
260
        break;
261 258
    case PIX_FMT_MONOWHITE:
262 259
        s->bpp = 1;
263
        s->photometric_interpretation = 0;
260
        s->photometric_interpretation = avctx->pix_fmt == PIX_FMT_MONOBLACK;
264 261
        break;
265 262
    case PIX_FMT_YUV420P:
266 263
    case PIX_FMT_YUV422P:

Also available in: Unified diff