mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-20 05:46:57 +00:00
matroskadec: request a read buffer for the wav header
Solve an infiniloop.
CC: libav-stable@libav.org
(cherry picked from commit 37cb3b180a
)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
9e48d77158
commit
9314af3b2e
@ -1415,7 +1415,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
&& track->codec_priv.data != NULL) {
|
||||
int ret;
|
||||
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);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user