OSDN Git Service

libhb: fix typo that causes 2 pass encodes to segfault at beginning of pass 2
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 20 Jun 2009 17:10:20 +0000 (17:10 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 20 Jun 2009 17:10:20 +0000 (17:10 +0000)
- this only appears after running at least one previous encode job so it
  got missed in simple one-off testing

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

libhb/work.c

index 4f20502..55ce36f 100644 (file)
@@ -354,7 +354,7 @@ void correct_framerate( hb_job_t * job )
 
     hb_interjob_t * interjob = hb_interjob_get( job->h );
 
-    if( ( job->sequence_id & 0xFFFFFF ) != ( interjob->last_job && 0xFFFFFF) )
+    if( ( job->sequence_id & 0xFFFFFF ) != ( interjob->last_job & 0xFFFFFF) )
         return; // Interjob information is for a different encode.
 
     /* Cache the original framerate before altering it. */