Mercurial > libavformat.hg
changeset 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 | 787a70a8b867 |
children | 6992dd78ff68 |
files | wav.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;