diff options
author | jstebbins <[email protected]> | 2010-11-03 00:35:02 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-11-03 00:35:02 +0000 |
commit | 2ea9e5f6a52da5f991ff49330c9a3ccaf40d08ca (patch) | |
tree | b45c224d2be5104dd44968cd5f0fe1129835e77a | |
parent | 502a28e7b4432afa3ad3467ab2d72b8ff556cd3f (diff) |
fix framerate detection of ffmpeg sources
found another spot where ticks_per_frame was not being accounted for.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3643 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/decavcodec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index e461f634b..379365b57 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1332,6 +1332,10 @@ static int decavcodecviInfo( hb_work_object_t *w, hb_work_info_t *info ) // need it in units of the 27MHz MPEG clock. */ info->rate = 27000000; info->rate_base = pv->duration * 300.; + if ( pv->context->ticks_per_frame > 1 ) + { + info->rate_base *= 2; + } return 1; } return 0; |