mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-11 10:27:50 +08:00
Make get_v() available to the other demuxers
Originally committed as revision 10911 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -472,6 +472,17 @@ uint64_t get_be64(ByteIOContext *s)
|
||||
return val;
|
||||
}
|
||||
|
||||
uint64_t get_v(ByteIOContext *bc){
|
||||
uint64_t val = 0;
|
||||
int tmp;
|
||||
|
||||
do{
|
||||
tmp = get_byte(bc);
|
||||
val= (val<<7) + (tmp&127);
|
||||
}while(tmp&128);
|
||||
return val;
|
||||
}
|
||||
|
||||
/* link with avio functions */
|
||||
|
||||
#ifdef CONFIG_MUXERS
|
||||
|
Reference in New Issue
Block a user