OSDN Git Service

fix framerate detection of ffmpeg sources
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 3 Nov 2010 00:35:02 +0000 (00:35 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 3 Nov 2010 00:35:02 +0000 (00:35 +0000)
found another spot where ticks_per_frame was not being accounted for.

git-svn-id: svn://localhost/HandBrake/trunk@3643 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/decavcodec.c

index e461f63..379365b 100644 (file)
@@ -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;