mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/opusdec: check alignment, misalignment could lead to crashes with avx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
61eea421b2
commit
46e3883519
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user