Commit d79d5aed authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5eacbb53'

* commit '5eacbb53':
  golomb: Add a get_se_golomb_long
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 27b4d154 5eacbb53
......@@ -214,6 +214,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;
......
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