aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-12-03 05:29:00 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-12-03 05:29:00 +0000
commitdfbb76d3730c38a2d36af3e9181be49b09a07d30 (patch)
tree3149da2d241c66fe62f9d8ea4da51278984eda8b /libavformat
parent10f865c9b753c296055c3d86060bd98411fb4f68 (diff)
downloadffmpeg-dfbb76d3730c38a2d36af3e9181be49b09a07d30.tar.gz
Some VQA v1 files don't have audio stream
Originally committed as revision 7216 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/westwood.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/westwood.c b/libavformat/westwood.c
index 5c42e3b550..e91b2e4d75 100644
--- 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;