Commit 0498dcd7 authored by michael's avatar michael

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7602 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a46ae8d7
...@@ -29,18 +29,13 @@ ...@@ -29,18 +29,13 @@
static uint64_t get_v(ByteIOContext *bc){ static uint64_t get_v(ByteIOContext *bc){
uint64_t val = 0; uint64_t val = 0;
int tmp;
for(;;) do{
{ tmp = get_byte(bc);
int tmp = get_byte(bc); val= (val<<7) + (tmp&127);
}while(tmp&128);
if (tmp&0x80) return val;
val= (val<<7) + tmp - 0x80;
else{
return (val<<7) + tmp;
}
}
return -1;
} }
static int get_str(ByteIOContext *bc, char *string, unsigned int maxlen){ static int get_str(ByteIOContext *bc, char *string, unsigned int maxlen){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment