comparison golomb.h @ 10164:944071b6fcb4 libavcodec

Make get_ur_golomb capable of reading 16 bit values. Patch by Lars T¸«£uber: firstname taeuber gmx net
author benoit
date Fri, 11 Sep 2009 06:25:36 +0000
parents 0dce4fe6e6f3
children 7dd2a45249a9
comparison
equal deleted inserted replaced
10163:24c03529ccbe 10164:944071b6fcb4
251 LAST_SKIP_BITS(re, gb, 32 + k - log); 251 LAST_SKIP_BITS(re, gb, 32 + k - log);
252 CLOSE_READER(re, gb); 252 CLOSE_READER(re, gb);
253 253
254 return buf; 254 return buf;
255 }else{ 255 }else{
256 buf >>= 32 - limit - esc_len; 256 LAST_SKIP_BITS(re, gb, limit);
257 LAST_SKIP_BITS(re, gb, esc_len + 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 CLOSE_READER(re, gb); 262 CLOSE_READER(re, gb);
259 263
260 return buf + limit - 1; 264 return buf + limit - 1;
261 } 265 }
262 } 266 }