Ticket #962: bink-24px.patch

File bink-24px.patch, 524 bytes (added by bgk, 4 years ago)
  • libavcodec/bink.c

    diff --git a/libavcodec/bink.c b/libavcodec/bink.c
    index f38c030..eb9e5a3 100644
    a b static void init_lengths(BinkContext *c, int width, int bw) 
    148148{ 
    149149    c->bundle[BINK_SRC_BLOCK_TYPES].len = av_log2((width >> 3) + 511) + 1; 
    150150 
    151     c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511) + 1; 
     151    c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2(((width + 7) >> 4) + 511) + 1; 
    152152 
    153153    c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1; 
    154154