Hi -

        I know a number of mjpegtools users also use the 'smilutils'
        to process DV data - this may be of interest.

        There is a bug in the function which initializes the .wav file's
        header, the RIFF header length is 36 too small.  Some programs
        ignore errors in the riff_length field or perhaps only give a 
        warning (mp2enc's warning message about .wav input header is a good
        example).   Other programs, such as Apple's AC3 encoder ("A.Pack")
        declare the file corrupt and refuse to process it.

        The patch below fixed the problem.   You'll need to recompile and
        install smilutils because the affected function is in one of the
        shared objects and not the smil2wav program itself.

        Cheers,
        Steven Schultz

--- extensions/AudioWav.cc.dist Wed Apr 30 19:50:55 2003
+++ extensions/AudioWav.cc      Thu May 29 16:13:10 2003
@@ -45,7 +45,7 @@
 void WavData::SetInfo( int16_t channels, int rate, int bytespersample ) 
 {
        memcpy( header.riff, "RIFF", 4 );
-       header.riff_length = 0;
+       header.riff_length = sizeof(header) - sizeof(header.riff) - 
sizeof(header.riff_length);
        memcpy( header.type, "WAVE", 4 );
        memcpy( header.format, "fmt ", 4 );
        header.format_length = 0x10;


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to