'ignorelength' option does not work in oggenc
Hello, I am using the latest version of the vorbis-tools and I have found small, but very annoying bug. The oggenc tool ignores --ignorelength option. It causes cropping of the some big streams which are streamed through the pipe. I manually fixed the bug, but not see that it fixed in the newest version of the vorbis-tools.
diff -Nuri vorbis-tools-1.4.0/oggenc/audio.c vorbis-tools-1.4.0-ignorelength/oggenc/audio.c
--- vorbis-tools-1.4.0/oggenc/audio.c 2010-03-24 12:27:14.000000000 +0400
+++ vorbis-tools-1.4.0-ignorelength/oggenc/audio.c 2012-03-03 19:33:28.000000000 +0400
@@ -547,6 +547,12 @@
of trying to abstract stuff. */
wav->samplesize = format.samplesize;
+
+ if (opt->ignorelength)
+ {
+ len = 0;
+ }
+
if(len)
{
opt->total_samples_per_channel = len/(format.channels*samplesize);