projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'qatar/master'
[ffmpeg.git]
/
libavcodec
/
mss12.h
diff --git
a/libavcodec/mss12.h
b/libavcodec/mss12.h
index
ba80030
..
42ceab5
100644
(file)
--- a/
libavcodec/mss12.h
+++ b/
libavcodec/mss12.h
@@
-103,7
+103,7
@@
av_cold int ff_mss12_decode_end(MSS12Context *ctx);
static int arith ## VERSION ## _get_bit(ArithCoder *c) \
{ \
int range = c->high - c->low + 1; \
- int bit =
(((c->value - c->low) << 1) + 1) / range;
\
+ int bit =
2 * c->value - c->low >= c->high;
\
\
if (bit) \
c->low += range >> 1; \