summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2008-02-23 23:30:41 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2008-02-23 23:30:41 +0000
commit7bb8d51c1f17823f27e680b70dd18246bf6731ee (patch)
tree14f84da339dd61760a7d1d2da168d774e6eb8bb3
parent4411cb11f89972b95f0c4db70d7466ba7104388d (diff)
downloadffmpeg-7bb8d51c1f17823f27e680b70dd18246bf6731ee.tar.gz
Riff ids for wmapro and wmavoice, this adds support for stream copy of these codecs between asf,avi and wav containers.
Originally committed as revision 12182 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/avcodec.h2
-rw-r--r--libavformat/riff.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8870fded3f..e1128e565b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -276,6 +276,8 @@ enum CodecID {
CODEC_ID_NELLYMOSER,
CODEC_ID_MUSEPACK8,
CODEC_ID_SPEEX,
+ CODEC_ID_WMAVOICE,
+ CODEC_ID_WMAPRO,
/* subtitle codecs */
CODEC_ID_DVD_SUBTITLE= 0x17000,
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 7e87e19a2c..d37fffdbd4 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -177,6 +177,7 @@ const AVCodecTag codec_bmp_tags[] = {
};
const AVCodecTag codec_wav_tags[] = {
+ { CODEC_ID_WMAVOICE, 0xA },
{ CODEC_ID_MP2, 0x50 },
{ CODEC_ID_MP3, 0x55 },
{ CODEC_ID_AC3, 0x2000 },
@@ -195,6 +196,7 @@ const AVCodecTag codec_wav_tags[] = {
{ CODEC_ID_ADPCM_IMA_DK3, 0x62 }, /* rogue format number */
{ CODEC_ID_WMAV1, 0x160 },
{ CODEC_ID_WMAV2, 0x161 },
+ { CODEC_ID_WMAPRO, 0x162 },
{ CODEC_ID_AAC, 0x706d },
{ CODEC_ID_AAC, 0xff },
{ CODEC_ID_VORBIS, ('V'<<8)+'o' }, //HACK/FIXME, does vorbis in WAV/AVI have an (in)official id?