OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40938d9
)
Fix demuxing of wav files with broken data header
author
Daniel Verkamp
<daniel@drv.nu>
Wed, 10 Feb 2010 20:26:47 +0000
(20:26 +0000)
committer
Daniel Verkamp
<daniel@drv.nu>
Wed, 10 Feb 2010 20:26:47 +0000
(20:26 +0000)
Originally committed as revision 21746 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/wav.c
patch
|
blob
|
history
diff --git
a/libavformat/wav.c
b/libavformat/wav.c
index
f4b2d61
..
5faa63e
100644
(file)
--- 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;
}