# HG changeset patch # User michael # Date 1160158840 0 # Node ID bc64defa2744f12d026a4a8b2946b8de408b73da # Parent 34273a935dcf2d1ce945d3681fd3afbafbf8d88d prevent >16bit tags to be truncated and used in creating .wav files diff -r 34273a935dcf -r bc64defa2744 riff.c --- a/riff.c Thu Oct 05 09:01:04 2006 +0000 +++ b/riff.c Fri Oct 06 18:20:40 2006 +0000 @@ -278,7 +278,7 @@ if(!enc->codec_tag || enc->codec_tag > 0xffff) enc->codec_tag = codec_get_tag(codec_wav_tags, enc->codec_id); - if(!enc->codec_tag) + if(!enc->codec_tag || enc->codec_tag > 0xffff) return -1; put_le16(pb, enc->codec_tag);