golomb: Fix the implementation of get_se_golomb_long
authorMartin Storsjö <martin@martin.st>
Sat, 29 Mar 2014 10:35:11 +0000 (12:35 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 29 Mar 2014 22:28:27 +0000 (00:28 +0200)
commit508a84e6726ab94a740c160b30fd8162265d1fef
treeb6106fc9fbb02d7a5f77d4dd7460c3bd4c92fddd
parent53c20f17c78d1d8a0fc2505868f201e69ff59cc5
golomb: Fix the implementation of get_se_golomb_long

This was only used in hevc muxing code so far.

This makes the return values match what get_se_golomb returns for
the same bitstream reader instances.

The logic for producing a signed golomb code out of an unsigned one
was based on the corresponding code in get_se_golomb, which operated
directly on the bitstream reader buffer - not on the equivalent
return value from get_ue_golomb.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/golomb.h