Revision ffedb5c1

View differences:

libavcodec/rv34.c
367 367
{
368 368
    int i;
369 369
    for(i = 0; i < 5; i++)
370
        if(rv34_mb_max_sizes[i] > mb_size)
370
        if(rv34_mb_max_sizes[i] >= mb_size - 1)
371 371
            break;
372 372
    return rv34_mb_bits_sizes[i];
373 373
}
libavcodec/rv34data.h
138 138
 * maximum number of macroblocks for each of the possible slice offset sizes
139 139
 * @todo This is the same as ff_mba_max, maybe use it instead.
140 140
 */
141
static const uint16_t rv34_mb_max_sizes[6] = { 0x2F, 0x68, 0x18B, 0x62F, 0x18BF, 0x23FF };
141
static const uint16_t rv34_mb_max_sizes[6] = { 0x2F, 0x62, 0x18B, 0x62F, 0x18BF, 0x23FF };
142 142
/**
143 143
 * bits needed to code the slice offset for the given size
144 144
 * @todo This is the same as ff_mba_length, maybe use it instead.

Also available in: Unified diff