projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d07aa3f
)
electronicarts: Add more sanity checking for the number of channels
author
Martin Storsjö
<martin@martin.st>
Sat, 28 Sep 2013 20:38:40 +0000
(23:38 +0300)
committer
Martin Storsjö
<martin@martin.st>
Sun, 29 Sep 2013 16:58:41 +0000
(19:58 +0300)
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/electronicarts.c
patch
|
blob
|
history
diff --git
a/libavformat/electronicarts.c
b/libavformat/electronicarts.c
index
b0e0674
..
9d00c2d
100644
(file)
--- 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->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;
av_log(s, AV_LOG_WARNING,
"Unsupported number of channels: %d\n", ea->num_channels);
ea->audio_codec = 0;