diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-03-12 18:56:28 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-03-12 20:05:39 +0100 |
commit | 9314af3b2e8518e1a7ad91bdc2429224aacc2df5 (patch) | |
tree | 11045077c9ff4772ab9f9b8cd87cd9099dbe8845 /libavformat | |
parent | 9e48d77158dcb104fb35b90593ace0b248bda7e1 (diff) | |
download | ffmpeg-9314af3b2e8518e1a7ad91bdc2429224aacc2df5.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 59e0e1f49d..891eb8380f 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; |