summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-07-11 12:30:41 +0000
committerjstebbins <[email protected]>2012-07-11 12:30:41 +0000
commita08d735658e82b40f409e60000a9bd3e43b0ba73 (patch)
tree1def053cb57f6fac4ee06ac2167e573d93eebc08 /libhb/hb.c
parent6a5520c420ff6bcf0a6ebc049ac71050042a8957 (diff)
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
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c1
1 files changed, 1 insertions, 0 deletions
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)
{