aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2010-01-10 05:08:42 +0000
committerPeter Ross <pross@xvid.org>2010-01-10 05:08:42 +0000
commitadd5badbc1df9abefdc6469ef6767fb2e452e339 (patch)
treeae97d0cb7b51d49bb2ae61140792c7505993fffa
parent9e2e821468d9374dcf946b0cd696a48059426b71 (diff)
downloadffmpeg-add5badbc1df9abefdc6469ef6767fb2e452e339.tar.gz
do not create Electronic Arts audio stream when unsupported revision2 audio codec is present [issue1516]
Originally committed as revision 21116 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/electronicarts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index 13f6f21fd7..323f3a83c2 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -192,6 +192,7 @@ static int process_audio_header_elements(AVFormatContext *s)
case 16: ea->audio_codec = CODEC_ID_MP3; break;
case -1: break;
default:
+ ea->audio_codec = 0;
av_log(s, AV_LOG_ERROR, "unsupported stream type; revision2=%i\n", revision2);
return 0;
}