This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
simplify
Originally committed as revision 7602 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer
19 years ago
parent
f8a32f450a
commit
07495657fb
1 changed files
with
6 additions
and
11 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-11
libavformat/nutdec.c
+ 6
- 11
libavformat/nutdec.c
View File
@@ -29,18 +29,13 @@
static uint64_t get_v(ByteIOContext *bc){
uint64_t val = 0;
int tmp;
for(;;)
{
int tmp = get_byte(bc);
if (tmp&0x80)
val= (val<<7) + tmp - 0x80;
else{
return (val<<7) + tmp;
}
}
return -1;
do{
tmp = get_byte(bc);
val= (val<<7) + (tmp&127);
}while(tmp&128);
return val;
}
static int get_str(ByteIOContext *bc, char *string, unsigned int maxlen){
Write
Preview
Loading…
Cancel
Save