[FFmpeg-cvslog] matroskadec: request a read buffer for the wav header
Luca Barbato
git at videolan.org
Sun Apr 7 15:38:17 CEST 2013
ffmpeg | branch: release/0.10 | Luca Barbato <lu_zero at gentoo.org> | Tue Mar 12 18:56:28 2013 +0100| [9314af3b2e8518e1a7ad91bdc2429224aacc2df5] | committer: Luca Barbato
matroskadec: request a read buffer for the wav header
Solve an infiniloop.
CC: libav-stable at libav.org
(cherry picked from commit 37cb3b180a1dc3d6f123f68e0806585ebc2578b6)
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9314af3b2e8518e1a7ad91bdc2429224aacc2df5
---
libavformat/matroskadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 59e0e1f..891eb83 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;
More information about the ffmpeg-cvslog
mailing list