Commit 4e863394 authored by mru's avatar mru

use standard codec tag if the specified tag is out of range and would be

truncated


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5488 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d7647086
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment