From a08d735658e82b40f409e60000a9bd3e43b0ba73 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 11 Jul 2012 12:30:41 +0000 Subject: libhb: fix hb_read_preview() when invalid index is passed 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/libhb/hb.c b/libhb/hb.c index 74ca82291..b5c721953 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -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) { -- cgit v1.2.3