Commit 2a8a9e9e authored by kostya's avatar kostya

Some VQA v1 files don't have audio stream

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7216 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dc243bf2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment