changeset 5648:e73024c5cb80 libavformat

Fix demuxing of wav files with broken data header
author daniel
date Wed, 10 Feb 2010 20:26:47 +0000
parents 6f5cdb0fb3c2
children f3c5f3b0eb0d
files wav.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wav.c	Wed Feb 10 19:43:57 2010 +0000
+++ b/wav.c	Wed Feb 10 20:26:47 2010 +0000
@@ -227,6 +227,9 @@
         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;
 }