Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-06-17 00:45:29 +0400
committerMåns Rullgård <mans@mansr.com>2006-06-17 00:45:29 +0400
commit79d1ec9129498260ceb410c54d6e95531f7c1d41 (patch)
treedd83b773a8fff0a26758e3efa4670bdada70ee0b /libavformat/wav.c
parent4f8ff17e7597584a6dc581b427a47615afb5bf3a (diff)
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
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r--libavformat/wav.c2
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;