[Ffmpeg-cvslog] r6568 - trunk/libavformat/riff.c

michael subversion
Fri Oct 6 20:20:40 CEST 2006


Author: michael
Date: Fri Oct  6 20:20:40 2006
New Revision: 6568

Modified:
   trunk/libavformat/riff.c

Log:
prevent >16bit tags to be truncated and used in creating .wav files


Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c	(original)
+++ trunk/libavformat/riff.c	Fri Oct  6 20:20:40 2006
@@ -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);




More information about the ffmpeg-cvslog mailing list