summaryrefslogtreecommitdiff
path: root/libavcodec/vorbis_enc.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-02 06:08:51 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-02 06:08:51 +0000
commit40b6c7213356693a98c90746f5665da581e0135d (patch)
tree91f8ce234dfb87de2d97f8116f30cf27c1b4561b /libavcodec/vorbis_enc.c
parent8b33748c45b5f425ef0291f2daed7732ea2fe7cc (diff)
Original Commit: r87 | ods15 | 2006-09-29 21:10:05 +0300 (Fri, 29 Sep 2006) | 2 lines
prevent valgrind warning Originally committed as revision 6492 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 0cc974e3c8..a64b7473a9 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -832,6 +832,7 @@ static void floor_encode(venc_context_t * venc, floor_t * fc, PutBitContext * pb
put_bits(pb, 1, 1); // non zero
put_bits(pb, ilog(range - 1), posts[0]);
put_bits(pb, ilog(range - 1), posts[1]);
+ coded[0] = coded[1] = 1;
for (i = 2; i < fc->values; i++) {
int predicted = render_point(fc->list[fc->list[i].low].x,
@@ -894,7 +895,6 @@ static void floor_encode(venc_context_t * venc, floor_t * fc, PutBitContext * pb
lx = 0;
ly = posts[0] * fc->multiplier; // sorted 0 is still 0
- coded[0] = coded[1] = 1;
for (i = 1; i < fc->values; i++) {
int pos = fc->list[i].sort;
if (coded[pos]) {