summaryrefslogtreecommitdiff
path: root/libavformat/riff.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-08-05 10:38:25 +0000
committerPeter Ross <pross@xvid.org>2008-08-05 10:38:25 +0000
commit4e0e6888a4960950dcda6c1553c141902a8937fc (patch)
treea612456bbb9b3f79ef6ce94a66e66feb4469b543 /libavformat/riff.c
parent5968d2dd1e9a71537790f9bdea214679b7d56b8b (diff)
Support muxing of Zork PCM audio into RIFF formats.
Originally committed as revision 14617 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r--libavformat/riff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 1945b38c72..ef3213706d 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -174,6 +174,7 @@ const AVCodecTag codec_wav_tags[] = {
{ CODEC_ID_PCM_MULAW, 0x0007 },
{ CODEC_ID_WMAVOICE, 0x000A },
{ CODEC_ID_ADPCM_IMA_WAV, 0x0011 },
+ { CODEC_ID_PCM_ZORK, 0x0011 }, /* must come after adpcm_ima_wav in this list */
{ CODEC_ID_ADPCM_YAMAHA, 0x0020 },
{ CODEC_ID_TRUESPEECH, 0x0022 },
{ CODEC_ID_GSM_MS, 0x0031 },
@@ -241,7 +242,8 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
put_le32(pb, enc->sample_rate);
if (enc->codec_id == CODEC_ID_PCM_U8 ||
enc->codec_id == CODEC_ID_PCM_ALAW ||
- enc->codec_id == CODEC_ID_PCM_MULAW) {
+ enc->codec_id == CODEC_ID_PCM_MULAW ||
+ enc->codec_id == CODEC_ID_PCM_ZORK) {
bps = 8;
} else if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS) {
bps = 0;