aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/westwood_vqa.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-21 00:04:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-21 18:09:27 +0100
commit5ca595facb9c0591c526903d1d836932fc86b80c (patch)
tree516bfe3d6d52369946d0dbca48b091665bb8298c /libavformat/westwood_vqa.c
parent98ca4d217d32e86fc19bfd9c26618292d58da0d2 (diff)
downloadffmpeg-5ca595facb9c0591c526903d1d836932fc86b80c.tar.gz
westwood_vqa: set video stream duration
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 572045be2f..c3bd0df6a9 100644
--- a/libavformat/westwood_vqa.c
+++ b/libavformat/westwood_vqa.c
@@ -112,6 +112,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;