]> granicus.if.org Git - handbrake/commitdiff
libhb: fix hb_read_preview() when invalid index is passed
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 11 Jul 2012 12:30:41 +0000 (12:30 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 11 Jul 2012 12:30:41 +0000 (12:30 +0000)
Was returning last preview instead of NULL

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4823 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/hb.c

index 74ca822917d75d382728fc61a52a1f0ec0778d7a..b5c721953abeab4ecdddc479607746b5fda6259d 100644 (file)
@@ -725,6 +725,7 @@ hb_buffer_t * hb_read_preview( hb_handle_t * h, int title_idx, int preview )
         {
             break;
         }
+        title = NULL;
     }
     if (title == NULL)
     {