Originally committed as revision 19821 to svn://svn.ffmpeg.org/ffmpeg/trunk
Lars Täuber authored on 2009/09/11 15:25:36... | ... |
@@ -253,8 +253,12 @@ static inline int get_ur_golomb(GetBitContext *gb, int k, int limit, int esc_len |
253 | 253 |
|
254 | 254 |
return buf; |
255 | 255 |
}else{ |
256 |
- buf >>= 32 - limit - esc_len; |
|
257 |
- LAST_SKIP_BITS(re, gb, esc_len + limit); |
|
256 |
+ LAST_SKIP_BITS(re, gb, limit); |
|
257 |
+ UPDATE_CACHE(re, gb); |
|
258 |
+ |
|
259 |
+ buf = SHOW_UBITS(re, gb, esc_len); |
|
260 |
+ |
|
261 |
+ LAST_SKIP_BITS(re, gb, esc_len); |
|
258 | 262 |
CLOSE_READER(re, gb); |
259 | 263 |
|
260 | 264 |
return buf + limit - 1; |