From b7e0f88f2b3bb36a7a0ad1417e90ea6409b7d685 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 10 Feb 2010 20:26:47 +0000 Subject: Fix demuxing of wav files with broken data header Originally committed as revision 21746 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/wav.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/wav.c') diff --git a/libavformat/wav.c b/libavformat/wav.c index f4b2d615c2..5faa63edca 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -227,6 +227,9 @@ static int wav_read_header(AVFormatContext *s, size = data_size; if (size < 0) return -1; + if (!size) { + wav->data_end = INT64_MAX; + } else wav->data_end= url_ftell(pb) + size; return 0; } -- cgit v1.2.3