summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-10-19 12:19:19 +0000
committerRodeo <[email protected]>2013-10-19 12:19:19 +0000
commit99896070050c04ac70dc14bfa0f995d8415ad016 (patch)
tree6a45e2d43bb5543337cc03f0f94c0af7b0e1dc6d /libhb/encx264.c
parentd8345dbae807a1f09fa49001500df0158d151780 (diff)
encx264: don't log unparsed options if the string is NULL.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5841 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index d1a71b7cf..68d7a96d0 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -328,7 +328,10 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
job->h264_profile,
job->h264_level,
job->width, job->height );
- hb_log( "encx264: unparsed options: %s", x264_opts_unparsed );
+ if( x264_opts_unparsed != NULL )
+ {
+ hb_log( "encx264: unparsed options: %s", x264_opts_unparsed );
+ }
free( x264_opts_unparsed );
hb_deep_log( 2, "encx264: opening libx264 (pass %d)", job->pass );