From: Yasuhiro Ikeda Date: Tue, 3 Aug 2010 13:10:15 +0000 (+0900) Subject: Try to guess input length for lavf input X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=a414ccb295c5a05f11d700513f0326dbb823d5e6;p=x264.git Try to guess input length for lavf input Allows printing of progress indicator when using lavf input. --- 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;