projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f865c
)
Some VQA v1 files don't have audio stream
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 3 Dec 2006 05:29:00 +0000
(
05:29
+0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 3 Dec 2006 05:29:00 +0000
(
05:29
+0000)
Originally committed as revision 7216 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/westwood.c
patch
|
blob
|
history
diff --git
a/libavformat/westwood.c
b/libavformat/westwood.c
index
5c42e3b
..
e91b2e4
100644
(file)
--- a/
libavformat/westwood.c
+++ b/
libavformat/westwood.c
@@
-249,7
+249,7
@@
static int wsvqa_read_header(AVFormatContext *s,
st->codec->time_base.den = VQA_FRAMERATE;
/* initialize the audio decoder stream for VQA v1 or nonzero samplerate */
- if (LE_16(&header[24]) || (LE_16(&header[0]) == 1)) {
+ if (LE_16(&header[24]) || (LE_16(&header[0]) == 1
&& LE_16(&header[2]) == 1
)) {
st = av_new_stream(s, 0);
if (!st)
return AVERROR_NOMEM;