1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  golomb: Fix the implementation of get_se_golomb_long

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-03-30 03:02:43 +02:00
commit 30e159366e

View File

@ -219,9 +219,9 @@ static inline int get_se_golomb_long(GetBitContext *gb)
unsigned int buf = get_ue_golomb_long(gb); unsigned int buf = get_ue_golomb_long(gb);
if (buf & 1) if (buf & 1)
buf = -(buf >> 1); buf = (buf + 1) >> 1;
else else
buf = (buf >> 1); buf = -(buf >> 1);
return buf; return buf;
} }