From: Paul B Mahol Date: Tue, 20 Mar 2012 22:26:41 +0000 (+0000) Subject: westwood_vqa: set video stream duration X-Git-Tag: android-x86-4.4-r1~8529^2~2428 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f0a343f39953f8112fb1bfe8989ff8479262fcc4;p=android-x86%2Fexternal-ffmpeg.git westwood_vqa: set video stream duration Signed-off-by: Paul B Mahol Signed-off-by: Ronald S. Bultje --- 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;