[FFmpeg-cvslog] westwood_vqa: set video stream duration
Paul B Mahol
git at videolan.org
Wed Mar 21 18:30:27 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Mar 21 00:04:50 2012 +0000| [5ca595facb9c0591c526903d1d836932fc86b80c] | committer: Michael Niedermayer
westwood_vqa: set video stream duration
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ca595facb9c0591c526903d1d836932fc86b80c
---
libavformat/westwood_vqa.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
index 572045b..c3bd0df 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;
More information about the ffmpeg-cvslog
mailing list