aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/electronicarts.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-08-12 08:35:09 +0000
committerPeter Ross <pross@xvid.org>2008-08-12 08:35:09 +0000
commit6819af824525d057cf24e864d5b331cbc145f9ca (patch)
treef4afacd9be1e5550536529efe415836dc799d536 /libavformat/electronicarts.c
parenta07f1178042cd884298b7ae47b5bf9926f44c334 (diff)
downloadffmpeg-6819af824525d057cf24e864d5b331cbc145f9ca.tar.gz
Electronic Arts demuxer: perform identification of ADPCM EA R2 codec using revision2 flag.
Originally committed as revision 14710 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/electronicarts.c')
-rw-r--r--libavformat/electronicarts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index 5e5d84e98f..2dc4f14bd2 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -181,6 +181,7 @@ static int process_audio_header_elements(AVFormatContext *s)
}
switch (revision2) {
case 8: ea->audio_codec = CODEC_ID_PCM_S16LE_PLANAR; break;
+ case 10: ea->audio_codec = CODEC_ID_ADPCM_EA_R2; break;
case -1: break;
default:
av_log(s, AV_LOG_ERROR, "unsupported stream type; revision2=%i\n", revision2);