[FFmpeg-cvslog] electronicarts: Add more sanity checking for the number of channels
Martin Storsjö
git at videolan.org
Sun Sep 29 23:58:58 CEST 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sat Sep 28 23:38:40 2013 +0300| [a9221e39600a31ee13e736e9e47743cde23f0280] | committer: Martin Storsjö
electronicarts: Add more sanity checking for the number of channels
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9221e39600a31ee13e736e9e47743cde23f0280
---
libavformat/electronicarts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index b0e0674..9d00c2d 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -467,7 +467,7 @@ static int ea_read_header(AVFormatContext *s)
}
if (ea->audio_codec) {
- if (ea->num_channels <= 0) {
+ if (ea->num_channels <= 0 || ea->num_channels > 2) {
av_log(s, AV_LOG_WARNING,
"Unsupported number of channels: %d\n", ea->num_channels);
ea->audio_codec = 0;
More information about the ffmpeg-cvslog
mailing list