]> git.videolan.org Git - x264.git/commitdiff
Fix 10L: Remove needless error check
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Mon, 29 Mar 2010 04:51:02 +0000 (13:51 +0900)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 31 Mar 2010 17:42:35 +0000 (10:42 -0700)
This error check was for cfr input + --timebase, but that doesn't happen, and brings about a bug with vfr input.

x264.c

diff --git a/x264.c b/x264.c
index f00afcec4ab135346826c1802b95f9ecf59ae989..43d3035b128b72c9fb909443aacf110d11bf515a 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -1214,12 +1214,6 @@ generic_option:
         }
         opt->timebase_convert_multiplier = ((double)i_user_timebase_den / param->i_timebase_den)
                                          * ((double)param->i_timebase_num / i_user_timebase_num);
-        if( opt->timebase_convert_multiplier < 1 )
-        {
-            fprintf( stderr, "x264 [error]: timebase you specified will generate nonmonotonic pts: %d/%d\n",
-                     i_user_timebase_num, i_user_timebase_den );
-            return -1;
-        }
         param->i_timebase_num = i_user_timebase_num;
         param->i_timebase_den = i_user_timebase_den;
         param->b_vfr_input = 1;