summaryrefslogtreecommitdiff
path: root/libavformat/westwood_vqa.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-20 22:26:41 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-27 08:54:07 -0700
commitf0a343f39953f8112fb1bfe8989ff8479262fcc4 (patch)
treea31383fb9bb8ee8953656d2b517a40d5803b485f /libavformat/westwood_vqa.c
parent98df2e24141cd00a557ef10ed7af2b956200cd80 (diff)
downloadffmpeg-f0a343f39953f8112fb1bfe8989ff8479262fcc4.tar.gz
westwood_vqa: set video stream duration
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
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 c4e19a9981..5e52e07a26 100644
--- a/libavformat/westwood_vqa.c
+++ b/libavformat/westwood_vqa.c
@@ -109,6 +109,8 @@ static int wsvqa_read_header(AVFormatContext *s)
st->codec->width = AV_RL16(&header[6]);
st->codec->height = AV_RL16(&header[8]);
fps = header[12];
+ st->nb_frames =
+ st->duration = AV_RL16(&header[4]);
if (fps < 1 || fps > 30) {
av_log(s, AV_LOG_ERROR, "invalid fps: %d\n", fps);
return AVERROR_INVALIDDATA;