OSDN Git Service

Oops, forgot the job->areBframes check needed to be updated for the new x264 defaults...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 9 Aug 2009 15:17:50 +0000 (15:17 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 9 Aug 2009 15:17:50 +0000 (15:17 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@2756 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx264.c

index 5e3fbc0..e0f9f34 100644 (file)
@@ -181,15 +181,15 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
                When B-frames are enabled, the max frame count increments
                by 1 (regardless of the number of B-frames). If you don't
                change the duration of the video track when you mux, libmp4
-               barfs.  So, check if the x264opts are using B-frames, and
-               when they are, set the boolean job->areBframes as true.
+               barfs.  So, check if the x264opts aren't using B-frames, and
+               when they aren't, set the boolean job->areBframes as false.
              */
-
+            job->areBframes = 1;
             if( !( strcmp( name, "bframes" ) ) )
             {
-                if( atoi( value ) > 0 )
+                if( atoi( value ) == 0 )
                 {
-                    job->areBframes = 1;
+                    job->areBframes = 0;
                 }
             }