diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-28 23:38:40 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-29 19:58:41 +0300 |
commit | a9221e39600a31ee13e736e9e47743cde23f0280 (patch) | |
tree | f05c817f98bec9fddbc7ca50fe7907a7457a0801 /libavformat | |
parent | d07aa3f02b73ab1371c13ac7898338380ca0932b (diff) | |
download | ffmpeg-a9221e39600a31ee13e736e9e47743cde23f0280.tar.gz |
electronicarts: Add more sanity checking for the number of channels
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/electronicarts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index b0e0674ad8..9d00c2d95e 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; |