From 2bc2b7e747aa0dadbcf71d9b108f54f2da975cea Mon Sep 17 00:00:00 2001 From: jbrjake Date: Tue, 24 Jul 2007 16:19:21 +0000 Subject: Oops, --turbo would cause a bus error if x264 options were not specified. Thanks for the patch, ares01590! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@726 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.c b/test/test.c index d3ae5a794..9c85e3121 100644 --- a/test/test.c +++ b/test/test.c @@ -591,7 +591,7 @@ static int HandleEvents( hb_handle_t * h ) */ if( turbo_opts_enabled ) { - int size = strlen(x264opts) + strlen(turbo_opts) + 2; + int size = (x264opts ? strlen(x264opts) : 0) + strlen(turbo_opts) + 2; char *tmp_x264opts; tmp_x264opts = malloc(size * sizeof(char)); -- cgit v1.2.3