riff: don't try to parse too small WAVEFORMAT headers
This commit is contained in:
parent
55fdcb9cc4
commit
eab526299e
@ -100,7 +100,8 @@ int ff_get_wav_header(void *logctx, AVIOContext *pb,
|
||||
|
||||
if (size < 14) {
|
||||
avpriv_request_sample(logctx, "wav header size < 14");
|
||||
return AVERROR_INVALIDDATA;
|
||||
avio_skip(pb, size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
av_channel_layout_uninit(&par->ch_layout);
|
||||
|
Loading…
Reference in New Issue
Block a user