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
golomb: Add a get_se_golomb_long
Useful in libavformat mostly.
tags/n2.3
Luca Barbato
12 years ago
parent
e854b8f9f4
commit
5eacbb5328
1 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-0
libavcodec/golomb.h
+ 12
- 0
libavcodec/golomb.h
View File
@@ -206,6 +206,18 @@ static inline int get_se_golomb(GetBitContext *gb)
}
}
static inline int get_se_golomb_long(GetBitContext *gb)
{
unsigned int buf = get_ue_golomb_long(gb);
if (buf & 1)
buf = -(buf >> 1);
else
buf = (buf >> 1);
return buf;
}
static inline int svq3_get_se_golomb(GetBitContext *gb)
{
unsigned int buf;
Write
Preview
Loading…
Cancel
Save