[Ffmpeg-cvslog] r5488 - trunk/libavformat/wav.c
mru
subversion
Fri Jun 16 22:45:29 CEST 2006
Author: mru
Date: Fri Jun 16 22:45:29 2006
New Revision: 5488
Modified:
trunk/libavformat/wav.c
Log:
use standard codec tag if the specified tag is out of range and would be
truncated
Modified: trunk/libavformat/wav.c
==============================================================================
--- trunk/libavformat/wav.c (original)
+++ trunk/libavformat/wav.c Fri Jun 16 22:45:29 2006
@@ -60,7 +60,7 @@
int bps, blkalign, bytespersec;
int hdrsize = 18;
- if(!enc->codec_tag)
+ if(!enc->codec_tag || enc->codec_tag > 0xffff)
enc->codec_tag = codec_get_tag(codec_wav_tags, enc->codec_id);
if(!enc->codec_tag)
return -1;
More information about the ffmpeg-cvslog
mailing list