Commit 46e38835 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/opusdec: check alignment, misalignment could lead to crashes with avx

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 61eea421
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment