prevent >16bit tags to be truncated and used in creating .wav files
Originally committed as revision 6568 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
59ef342beb
commit
92eb82325e
@ -278,7 +278,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
|
|||||||
|
|
||||||
if(!enc->codec_tag || enc->codec_tag > 0xffff)
|
if(!enc->codec_tag || enc->codec_tag > 0xffff)
|
||||||
enc->codec_tag = codec_get_tag(codec_wav_tags, enc->codec_id);
|
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;
|
return -1;
|
||||||
|
|
||||||
put_le16(pb, enc->codec_tag);
|
put_le16(pb, enc->codec_tag);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user