summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-03-12 18:56:28 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-03-12 18:58:06 +0100
commit37cb3b180a1dc3d6f123f68e0806585ebc2578b6 (patch)
tree18c424e12bfae63d60b3a75db5c3196e32a98b66 /libavformat/matroskadec.c
parenta8b6015823e628047a45916404c00044c5e80415 (diff)
matroskadec: request a read buffer for the wav header
Solve an infiniloop. CC: libav-stable@libav.org
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 388a9f4206..4a872b8dc8 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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;