mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
matroskadec: request a read buffer for the wav header
Solve an infiniloop. CC: libav-stable@libav.org
This commit is contained in:
parent
a8b6015823
commit
37cb3b180a
@ -1496,7 +1496,7 @@ static int matroska_read_header(AVFormatContext *s)
|
|||||||
&& track->codec_priv.data != NULL) {
|
&& track->codec_priv.data != NULL) {
|
||||||
int ret;
|
int ret;
|
||||||
ffio_init_context(&b, track->codec_priv.data, track->codec_priv.size,
|
ffio_init_context(&b, track->codec_priv.data, track->codec_priv.size,
|
||||||
AVIO_FLAG_READ, NULL, NULL, NULL, NULL);
|
0, NULL, NULL, NULL, NULL);
|
||||||
ret = ff_get_wav_header(&b, st->codec, track->codec_priv.size);
|
ret = ff_get_wav_header(&b, st->codec, track->codec_priv.size);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user