[x264-devel] commit: Try to guess input length for lavf input (Yasuhiro Ikeda )

git at videolan.org git at videolan.org
Mon Aug 16 12:07:19 CEST 2010


x264 | branch: stable | Yasuhiro Ikeda <wipple625 at gmail.com> | Tue Aug  3 22:10:15 2010 +0900| [a414ccb295c5a05f11d700513f0326dbb823d5e6] | committer: Jason Garrett-Glaser 

Try to guess input length for lavf input
Allows printing of progress indicator when using lavf input.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=a414ccb295c5a05f11d700513f0326dbb823d5e6
---

 input/lavf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/input/lavf.c b/input/lavf.c
index 55112bf..52e890c 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;
 



More information about the x264-devel mailing list