All pastes #675406 Raw Edit

Untitled

public diff v1 · immutable
#675406 ·published 2007-08-30 02:42 UTC
rendered paste body
Index: libhb/scan.c===================================================================--- libhb/scan.c        (revision 898)+++ libhb/scan.c        (working copy)@@ -386,6 +386,7 @@         hb_libmpeg2_info( mpeg2, &title->width, &title->height,                           &title->rate_base, &ar );        +        hb_log("Rate base is at %d", title->rate_base);         if (title->rate_base == 1126125)         {             /* Frame FPS is 23.976 (meaning it's progressive), so@@ -396,11 +397,14 @@             progressive_count++;              if (progressive_count < 6)+            {                 /* Not enough frames are reporting as progressive,                    which means we should be conservative and use                    29.97 as the title's FPS for now.                 */                 title->rate_base = 900900;           +                hb_log("Reset fps to 29.97");+            }             else             {                 /* A majority of the scan frames are progressive. Make that@@ -410,6 +414,10 @@                     hb_log("Title's mostly progressive NTSC, setting fps to 23.976");                 title->rate_base = 1126125;                            }+        } +        else if ( title->rate_base == 900900 && progressive_count >= 6 )+        {+            title->rate_base = 1126125;         }                         if( i == 2) // Use the third frame's info, so as to skip opening logos