diff options
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r-- | libavcodec/ffv1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 9eef531d59..62b12ede16 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -258,10 +258,8 @@ static inline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed){ a += a + get_rac(c, state+22 + i); //22..31 } - if(is_signed && get_rac(c, state+11 + e)) //11..21 - return -a; - else - return a; + e= -(is_signed && get_rac(c, state+11 + e)); //11..21 + return (a^e)-e; } } |