summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-08-20 17:25:37 +0000
committerjstebbins <[email protected]>2014-08-20 17:25:37 +0000
commit6b760b00e26664c9d9566177f0af8a5931ce3f93 (patch)
tree49adbbde47309e9309c91ca4252cd03027ac1199 /libhb/work.c
parent64f39eb7f2ad0fa54bb9faa8f3f997238500cd4a (diff)
libhb: fix potential crash in filters
If the job aborts right away, an uninitialized buffer is closed and crash! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6326 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 240ccbb92..88f4be248 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -1752,7 +1752,7 @@ static void work_loop( void * _w )
static void filter_loop( void * _f )
{
hb_filter_object_t * f = _f;
- hb_buffer_t * buf_in, * buf_out;
+ hb_buffer_t * buf_in, * buf_out = NULL;
while( !*f->done && f->status != HB_FILTER_DONE )
{