[Ffmpeg-cvslog] r6492 - trunk/libavcodec/vorbis_enc.c

ods15 subversion
Mon Oct 2 08:08:52 CEST 2006


Author: ods15
Date: Mon Oct  2 08:08:51 2006
New Revision: 6492

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
Original Commit: r87 | ods15 | 2006-09-29 21:10:05 +0300 (Fri, 29 Sep 2006) | 2 lines

prevent valgrind warning

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 08:08:51 2006
@@ -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]) {




More information about the ffmpeg-cvslog mailing list