mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: wavpack: check packet size early Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b7d16dc4bd
@ -1216,6 +1216,9 @@ static int wavpack_decode_frame(AVCodecContext *avctx, void *data,
|
||||
int frame_size, ret, frame_flags;
|
||||
int samplecount = 0;
|
||||
|
||||
if (avpkt->size < 12 + s->multichannel * 4)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
s->block = 0;
|
||||
s->ch_offset = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user