Mercurial > libavformat.hg
diff wav.c @ 1122:f8ee5a4b576e libavformat
use standard codec tag if the specified tag is out of range and would be
truncated
author | mru |
---|---|
date | Fri, 16 Jun 2006 20:45:29 +0000 |
parents | 3aeb079a7e74 |
children | d65cd7c3573e |
line wrap: on
line diff
--- a/wav.c Fri Jun 16 10:06:57 2006 +0000 +++ b/wav.c Fri Jun 16 20:45:29 2006 +0000 @@ -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;