Revision 995013eb

View differences:

libavcodec/tiffenc.c
282 282
        return -1;
283 283
    }
284 284
    if (!is_yuv)
285
        s->bpp_tab_size = (s->bpp >> 3);
285
        s->bpp_tab_size = ((s->bpp + 7) >> 3);
286 286

  
287 287
    if (s->compr == TIFF_DEFLATE || s->compr == TIFF_ADOBE_DEFLATE || s->compr == TIFF_LZW)
288 288
        //best choose for DEFLATE

Also available in: Unified diff