comparison vorbis_enc.c @ 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
comparison
equal deleted inserted replaced
3886:e96794bc2b0a 3887:71ba8e680704
830 int lx, ly; 830 int lx, ly;
831 831
832 put_bits(pb, 1, 1); // non zero 832 put_bits(pb, 1, 1); // non zero
833 put_bits(pb, ilog(range - 1), posts[0]); 833 put_bits(pb, ilog(range - 1), posts[0]);
834 put_bits(pb, ilog(range - 1), posts[1]); 834 put_bits(pb, ilog(range - 1), posts[1]);
835 coded[0] = coded[1] = 1;
835 836
836 for (i = 2; i < fc->values; i++) { 837 for (i = 2; i < fc->values; i++) {
837 int predicted = render_point(fc->list[fc->list[i].low].x, 838 int predicted = render_point(fc->list[fc->list[i].low].x,
838 posts[fc->list[i].low], 839 posts[fc->list[i].low],
839 fc->list[fc->list[i].high].x, 840 fc->list[fc->list[i].high].x,
892 } 893 }
893 } 894 }
894 895
895 lx = 0; 896 lx = 0;
896 ly = posts[0] * fc->multiplier; // sorted 0 is still 0 897 ly = posts[0] * fc->multiplier; // sorted 0 is still 0
897 coded[0] = coded[1] = 1;
898 for (i = 1; i < fc->values; i++) { 898 for (i = 1; i < fc->values; i++) {
899 int pos = fc->list[i].sort; 899 int pos = fc->list[i].sort;
900 if (coded[pos]) { 900 if (coded[pos]) {
901 render_line(lx, ly, fc->list[pos].x, posts[pos] * fc->multiplier, floor, samples); 901 render_line(lx, ly, fc->list[pos].x, posts[pos] * fc->multiplier, floor, samples);
902 lx = fc->list[pos].x; 902 lx = fc->list[pos].x;