diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-12-23 18:27:06 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-12-23 18:27:06 +0000 |
commit | ffedb5c19a2a0f57d686c40b01395befe9f38e67 (patch) | |
tree | ebdec94ee75c0f0477b6cc85fed377dbe55d1ceb /libavcodec/rv34.c | |
parent | 2d76bf391ac7aed0d02c93658fecb0ab2bc4e915 (diff) | |
download | ffmpeg-streaming-ffedb5c19a2a0f57d686c40b01395befe9f38e67.zip ffmpeg-streaming-ffedb5c19a2a0f57d686c40b01395befe9f38e67.tar.gz |
352l: correct calculating number of bits for storing macroblock offset in RV3/4
Originally committed as revision 16293 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 7792cad..294824e 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -367,7 +367,7 @@ int ff_rv34_get_start_offset(GetBitContext *gb, int mb_size) { int i; for(i = 0; i < 5; i++) - if(rv34_mb_max_sizes[i] > mb_size) + if(rv34_mb_max_sizes[i] >= mb_size - 1) break; return rv34_mb_bits_sizes[i]; } |