diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-11-08 19:31:00 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-11 00:04:04 +0100 |
commit | ff8816f7172b94028131ee2426ba35e875d973ae (patch) | |
tree | 8f37d8c77c71035e418521a20a798c38d4fc3ed1 /libavcodec/aacsbr_template.c | |
parent | d8f13e783a55ff140f5f3e9729aeb83174d7183d (diff) | |
download | ffmpeg-ff8816f7172b94028131ee2426ba35e875d973ae.tar.gz |
aacsbr: ensure strictly monotone time borders
This fixes a division by zero in the aac_fixed decoder.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/aacsbr_template.c')
-rw-r--r-- | libavcodec/aacsbr_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacsbr_template.c b/libavcodec/aacsbr_template.c index dcbd5747cb..0ae2a9665e 100644 --- a/libavcodec/aacsbr_template.c +++ b/libavcodec/aacsbr_template.c @@ -720,8 +720,8 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr, } for (i = 1; i <= ch_data->bs_num_env; i++) { - if (ch_data->t_env[i-1] > ch_data->t_env[i]) { - av_log(ac->avctx, AV_LOG_ERROR, "Non monotone time borders\n"); + if (ch_data->t_env[i-1] >= ch_data->t_env[i]) { + av_log(ac->avctx, AV_LOG_ERROR, "Not strictly monotone time borders\n"); return -1; } } |