mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
opusdec: Don't run vector_fmul_scalar on zero length arrays
Fixes crashes on fuzzed files Fixes Ticket4969 part2 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
07225fa74f
commit
b3e5f15b95
@ -585,7 +585,7 @@ static int opus_decode_packet(AVCodecContext *avctx, void *data,
|
|||||||
memset(frame->extended_data[i], 0, frame->linesize[0]);
|
memset(frame->extended_data[i], 0, frame->linesize[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->gain_i) {
|
if (c->gain_i && decoded_samples > 0) {
|
||||||
c->fdsp->vector_fmul_scalar((float*)frame->extended_data[i],
|
c->fdsp->vector_fmul_scalar((float*)frame->extended_data[i],
|
||||||
(float*)frame->extended_data[i],
|
(float*)frame->extended_data[i],
|
||||||
c->gain, FFALIGN(decoded_samples, 8));
|
c->gain, FFALIGN(decoded_samples, 8));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user