From: jstebbins Date: Wed, 20 Aug 2014 17:25:37 +0000 (+0000) Subject: libhb: fix potential crash in filters X-Git-Tag: 0.10.0~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b760b00e26664c9d9566177f0af8a5931ce3f93;p=handbrake 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 --- 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 ) {