Mercurial > libavformat.hg
changeset 1355:bc64defa2744 libavformat
prevent >16bit tags to be truncated and used in creating .wav files
author | michael |
---|---|
date | Fri, 06 Oct 2006 18:20:40 +0000 |
parents | 34273a935dcf |
children | 88646f2befdb |
files | riff.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);