changeset 3887:71ba8e680704 libavcodec

Original Commit: r87 | ods15 | 2006-09-29 21:10:05 +0300 (Fri, 29 Sep 2006) | 2 lines prevent valgrind warning
author ods15
date Mon, 02 Oct 2006 06:08:51 +0000
parents e96794bc2b0a
children e89e213459cf
files vorbis_enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:08:48 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:08:51 2006 +0000
@@ -832,6 +832,7 @@
     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 @@
 
     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]) {