diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-24 15:24:24 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-04 18:38:01 +0100 |
commit | 97f50e92b5cf3b47a76f75d76ed4340e822030db (patch) | |
tree | 53a2737288969b342fa742fa5283baf2096ee7cf | |
parent | e73996954d8e00117056dcefb38ef3d4d2f37967 (diff) | |
download | ffmpeg-streaming-97f50e92b5cf3b47a76f75d76ed4340e822030db.zip ffmpeg-streaming-97f50e92b5cf3b47a76f75d76ed4340e822030db.tar.gz |
omadec: Fix wrong number of array elements
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavformat/omadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c index e5a2090..98ccbde 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -263,7 +263,7 @@ static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header) !nprobe(s, gdata, geob->datasize, oc->n_val)) break; } - if (i >= sizeof(leaf_table)) { + if (i >= FF_ARRAY_ELEMS(leaf_table)) { av_log(s, AV_LOG_ERROR, "Invalid key\n"); return AVERROR_INVALIDDATA; } |