summaryrefslogtreecommitdiff
path: root/libavformat/westwood_vqa.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-23 10:52:49 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-24 14:08:29 -0500
commite1ac69fa27b924999bc5dbb7ffefa2af88bf3798 (patch)
tree81613fde75312e5c3052900720b20d4639caa34b /libavformat/westwood_vqa.c
parent1381e9bc92e54f0c3472a1f7150a8530ccd55379 (diff)
downloadffmpeg-e1ac69fa27b924999bc5dbb7ffefa2af88bf3798.tar.gz
vqa: set stream start_time to 0.
The format has no coded timestamps and must use packet durations to generate them.
Diffstat (limited to 'libavformat/westwood_vqa.c')
-rw-r--r--libavformat/westwood_vqa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
index 2eff4cc0a5..20462d99c2 100644
--- a/libavformat/westwood_vqa.c
+++ b/libavformat/westwood_vqa.c
@@ -94,6 +94,7 @@ static int wsvqa_read_header(AVFormatContext *s,
st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
+ st->start_time = 0;
avpriv_set_pts_info(st, 33, 1, VQA_FRAMERATE);
wsvqa->video_stream_index = st->index;
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
@@ -120,6 +121,7 @@ static int wsvqa_read_header(AVFormatContext *s,
st = avformat_new_stream(s, NULL);
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)