diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 00:38:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 00:38:20 +0200 |
commit | 46e3883519b7592e946258c68d072abd89e583c8 (patch) | |
tree | 8ca7d5b708aade9d8f47deaf13ccc70409e21d80 | |
parent | 61eea421b23f124139683add1dadcd6036050dc6 (diff) | |
download | ffmpeg-46e3883519b7592e946258c68d072abd89e583c8.tar.gz |
avcodec/opusdec: check alignment, misalignment could lead to crashes with avx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/opusdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c index 12c342c03c..b28edfbcd9 100644 --- a/libavcodec/opusdec.c +++ b/libavcodec/opusdec.c @@ -240,6 +240,7 @@ static int opus_decode_frame(OpusStreamContext *s, const uint8_t *data, int size av_log(s->avctx, AV_LOG_ERROR, "Error resampling SILK data.\n"); return samples; } + av_assert2((samples & 7) == 0); s->delayed_samples += s->packet.frame_duration - samples; } else ff_silk_flush(s->silk); |