Merge commit '6d7ab09788bdafffb3f3fc4f7feb262eb8cdf0b1' into release/2.2
* commit '6d7ab09788bdafffb3f3fc4f7feb262eb8cdf0b1': golomb: Add a get_se_golomb_long Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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)
|
static inline int svq3_get_se_golomb(GetBitContext *gb)
|
||||||
{
|
{
|
||||||
unsigned int buf;
|
unsigned int buf;
|
||||||
|
Reference in New Issue
Block a user