1
0
Fork 0

riff: don't try to parse too small WAVEFORMAT headers

This commit is contained in:
Hendrik Leppkes 2013-08-06 20:24:31 +02:00
parent ca6c6c4c6f
commit 57d913f889
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,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);