diff options
author | Måns Rullgård <mans@mansr.com> | 2006-06-16 20:45:29 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-06-16 20:45:29 +0000 |
commit | 79d1ec9129498260ceb410c54d6e95531f7c1d41 (patch) | |
tree | dd83b773a8fff0a26758e3efa4670bdada70ee0b | |
parent | 4f8ff17e7597584a6dc581b427a47615afb5bf3a (diff) | |
download | ffmpeg-79d1ec9129498260ceb410c54d6e95531f7c1d41.tar.gz |
use standard codec tag if the specified tag is out of range and would be
truncated
Originally committed as revision 5488 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/wav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index 0f04456445..2b215c4b2b 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -60,7 +60,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) 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; |