Ticket #1653: g3_byte.diff

File g3_byte.diff, 678 bytes (added by ami_stuff, 7 years ago)
  • libavcodec/faxcompr.c

    diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
    index 57e92be..9c38714 100644
    a b int ff_ccitt_unpack(AVCodecContext *avctx, 
    279279    int ret;
    280280    int runsize= avctx->width + 2;
    281281    int err = 0;
     282    int g3_byte;
    282283    int has_eol;
    283284
    284285    runs = av_malloc(runsize * sizeof(runs[0]));
    int ff_ccitt_unpack(AVCodecContext *avctx, 
    291292    ref[1] = 0;
    292293    ref[2] = 0;
    293294    init_get_bits(&gb, src, srcsize*8);
     295    g3_byte = (compr == TIFF_G3) && (opts & 4);
     296    if (!g3_byte)
    294297    has_eol = show_bits(&gb, 12) == 1;
    295298    for(j = 0; j < height; j++){
    296299        runend = runs + runsize;