You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mpc7: Fix memset call in mpc7_decode_frame function
This commit is contained in:
@@ -200,7 +200,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx,
|
||||
int off, out_size;
|
||||
int bits_used, bits_avail;
|
||||
|
||||
memset(bands, 0, sizeof(bands));
|
||||
memset(bands, 0, sizeof(*bands) * (c->maxbands + 1));
|
||||
if(buf_size <= 4){
|
||||
av_log(avctx, AV_LOG_ERROR, "Too small buffer passed (%i bytes)\n", buf_size);
|
||||
return AVERROR(EINVAL);
|
||||
|
Reference in New Issue
Block a user