[NUT-devel] [NUT] (ods15): r72 - /trunk/libnut/demuxer.c
syncmail at mplayerhq.hu
syncmail at mplayerhq.hu
Sat Feb 25 16:52:20 CET 2006
Author: ods15
Date: Sat Feb 25 16:52:20 2006
New Revision: 72
Log:
small get_v fix
Modified:
trunk/libnut/demuxer.c
Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c (original)
+++ trunk/libnut/demuxer.c Sat Feb 25 16:52:20 2006
@@ -114,13 +114,14 @@
static int get_v(input_buffer_t * bc, uint64_t * val) {
int i, len;
*val = 0;
- while ((len = ready_read_buf(bc, 16))) {
+ do {
+ len = ready_read_buf(bc, 16);
for(i = 0; i < len; i++){
uint8_t tmp= *(bc->buf_ptr++);
*val = (*val << 7) | (tmp & 0x7F);
if (!(tmp & 0x80)) return 0;
}
- }
+ } while (len >= 16);
return buf_eof(bc);
}
More information about the NUT-devel
mailing list