Commit 37cb3b18 authored by Luca Barbato's avatar Luca Barbato

matroskadec: request a read buffer for the wav header

Solve an infiniloop.

CC: libav-stable@libav.org
parent a8b60158
......@@ -1496,7 +1496,7 @@ static int matroska_read_header(AVFormatContext *s)
&& 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment