Mercurial > libavformat.hg
comparison westwood.c @ 1549:3b4019c023a3 libavformat
Some VQA v1 files don't have audio stream
author | kostya |
---|---|
date | Sun, 03 Dec 2006 05:29:00 +0000 |
parents | 8811d543732e |
children | 4cb185273d4b |
comparison
equal
deleted
inserted
replaced
1548:5bb34e659b1c | 1549:3b4019c023a3 |
---|---|
247 | 247 |
248 st->codec->time_base.num = 1; | 248 st->codec->time_base.num = 1; |
249 st->codec->time_base.den = VQA_FRAMERATE; | 249 st->codec->time_base.den = VQA_FRAMERATE; |
250 | 250 |
251 /* initialize the audio decoder stream for VQA v1 or nonzero samplerate */ | 251 /* initialize the audio decoder stream for VQA v1 or nonzero samplerate */ |
252 if (LE_16(&header[24]) || (LE_16(&header[0]) == 1)) { | 252 if (LE_16(&header[24]) || (LE_16(&header[0]) == 1 && LE_16(&header[2]) == 1)) { |
253 st = av_new_stream(s, 0); | 253 st = av_new_stream(s, 0); |
254 if (!st) | 254 if (!st) |
255 return AVERROR_NOMEM; | 255 return AVERROR_NOMEM; |
256 av_set_pts_info(st, 33, 1, 90000); | 256 av_set_pts_info(st, 33, 1, 90000); |
257 st->codec->codec_type = CODEC_TYPE_AUDIO; | 257 st->codec->codec_type = CODEC_TYPE_AUDIO; |