summaryrefslogtreecommitdiff
path: root/libavcodec/vorbis_enc.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-02 06:07:26 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-02 06:07:26 +0000
commit33592a633fd29baad1bb80098760eed8d9102ee7 (patch)
treef6cdcb54dc4a22685b89e2801217d386a5ce05dd /libavcodec/vorbis_enc.c
parent174476cd7dd106a212ea99f8fca1a67123e95943 (diff)
Original Commit: r48 | ods15 | 2006-09-23 12:45:25 +0300 (Sat, 23 Sep 2006) | 2 lines
small fix for residue header Originally committed as revision 6455 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r--libavcodec/vorbis_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index 05924f6a05..bd9365236c 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -468,7 +468,7 @@ static void put_residue_header(PutBitContext * pb, residue_t * rc) {
for (i = 0; i < rc->classifications; i++) {
int j, tmp = 0;
- for (j = 0; j < 8; j++) tmp |= (!!rc->books[i][j]) << j;
+ for (j = 0; j < 8; j++) tmp |= (rc->books[i][j] != -1) << j;
put_bits(pb, 3, tmp & 7);
put_bits(pb, 1, tmp > 7);