[FFmpeg-soc] [soc]: r886 - dirac/libavcodec/dirac_arith.c
marco
subversion at mplayerhq.hu
Thu Aug 16 17:34:23 CEST 2007
Author: marco
Date: Thu Aug 16 17:34:23 2007
New Revision: 886
Log:
do not write a sign bit when the value is zero
Modified:
dirac/libavcodec/dirac_arith.c
Modified: dirac/libavcodec/dirac_arith.c
==============================================================================
--- dirac/libavcodec/dirac_arith.c (original)
+++ dirac/libavcodec/dirac_arith.c Thu Aug 16 17:34:23 2007
@@ -268,7 +268,8 @@ void dirac_arith_write_int(dirac_arith_s
struct dirac_arith_context_set *context_set,
int i) {
dirac_arith_write_uint(arith, context_set, FFABS(i));
- dirac_arith_put_bit(arith, context_set->sign, i < 0);
+ if (i)
+ dirac_arith_put_bit(arith, context_set->sign, i < 0);
}
More information about the FFmpeg-soc
mailing list