diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-23 10:55:28 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-24 14:08:29 -0500 |
commit | 53ed79a260099c761f8a74872d695a2aeb7a0ced (patch) | |
tree | 7e0d961a1752ff290d4bf9da710dec5425bf6ac7 | |
parent | e1ac69fa27b924999bc5dbb7ffefa2af88bf3798 (diff) | |
download | ffmpeg-53ed79a260099c761f8a74872d695a2aeb7a0ced.tar.gz |
vqa: use 1/sample_rate as the audio stream time base
-rw-r--r-- | libavformat/westwood_vqa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c index 20462d99c2..fef6877944 100644 --- a/libavformat/westwood_vqa.c +++ b/libavformat/westwood_vqa.c @@ -122,7 +122,6 @@ static int wsvqa_read_header(AVFormatContext *s, if (!st) return AVERROR(ENOMEM); st->start_time = 0; - avpriv_set_pts_info(st, 33, 1, VQA_FRAMERATE); st->codec->codec_type = AVMEDIA_TYPE_AUDIO; if (AV_RL16(&header[0]) == 1) st->codec->codec_id = CODEC_ID_WESTWOOD_SND1; @@ -140,6 +139,8 @@ static int wsvqa_read_header(AVFormatContext *s, st->codec->bits_per_coded_sample / 4; st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample; + avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); + wsvqa->audio_stream_index = st->index; wsvqa->audio_samplerate = st->codec->sample_rate; wsvqa->audio_channels = st->codec->channels; |