diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-03-12 18:56:28 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2013-05-09 11:20:11 +0200 |
commit | 5bfa208e6565fdea62898080b8fecbbd799d1454 (patch) | |
tree | 2377836f77a906b3163d854c901cbd710affef83 /libavformat | |
parent | 7d4c38d58d01832498302a5fc224880f1bd8b494 (diff) | |
download | ffmpeg-5bfa208e6565fdea62898080b8fecbbd799d1454.tar.gz |
matroskadec: request a read buffer for the wav header
Solve an infiniloop.
CC: libav-stable@libav.org
(cherry picked from commit 37cb3b180a1dc3d6f123f68e0806585ebc2578b6)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index a70f2ef86a..e7406d56c4 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1359,7 +1359,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; |