[FFmpeg-cvslog] r21746 - trunk/libavformat/wav.c

daniel subversion
Wed Feb 10 21:26:47 CET 2010


Author: daniel
Date: Wed Feb 10 21:26:47 2010
New Revision: 21746

Log:
Fix demuxing of wav files with broken data header

Modified:
   trunk/libavformat/wav.c

Modified: trunk/libavformat/wav.c
==============================================================================
--- trunk/libavformat/wav.c	Wed Feb 10 20:46:44 2010	(r21745)
+++ trunk/libavformat/wav.c	Wed Feb 10 21:26:47 2010	(r21746)
@@ -227,6 +227,9 @@ static int wav_read_header(AVFormatConte
         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;
 }



More information about the ffmpeg-cvslog mailing list