Revision e70e7a4b libavcodec/huffyuv.c

View differences:

libavcodec/huffyuv.c
808 808
            return -1;
809 809
    }
810 810

  
811
    if((unsigned)(buf_size-table_size) >= INT_MAX/8)
812
        return -1;
813

  
811 814
    init_get_bits(&s->gb, s->bitstream_buffer+table_size, (buf_size-table_size)*8);
812 815

  
813 816
    fake_ystride= s->interlaced ? p->linesize[0]*2  : p->linesize[0];

Also available in: Unified diff