]> granicus.if.org Git - handbrake/commitdiff
Oops, --turbo would cause a bus error if x264 options were not specified. Thanks...
authorjbrjake <jb.rubin@gmail.com>
Tue, 24 Jul 2007 16:19:21 +0000 (16:19 +0000)
committerjbrjake <jb.rubin@gmail.com>
Tue, 24 Jul 2007 16:19:21 +0000 (16:19 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@726 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index d3ae5a7947bd6077de23042f67c3847edf9c46a5..9c85e31213d2c5b16c0ff5841992b02b1aa46814 100644 (file)
@@ -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));