From a414ccb295c5a05f11d700513f0326dbb823d5e6 Mon Sep 17 00:00:00 2001 From: Yasuhiro Ikeda Date: Tue, 3 Aug 2010 22:10:15 +0900 Subject: [PATCH] Try to guess input length for lavf input Allows printing of progress indicator when using lavf input. --- input/lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/lavf.c b/input/lavf.c index 55112bf9..52e890c5 100644 --- a/input/lavf.c +++ b/input/lavf.c @@ -162,7 +162,7 @@ static int open_file( char *psz_filename, hnd_t *p_handle, video_info_t *info, c info->width = c->width; info->height = c->height; info->csp = h->first_pic->img.csp; - info->num_frames = 0; /* FIXME */ + info->num_frames = h->lavf->streams[i]->nb_frames; info->sar_height = c->sample_aspect_ratio.den; info->sar_width = c->sample_aspect_ratio.num; -- 2.47.3