changeset 2888:771fae923356 libavcodec

dont print NULL
author michael
date Tue, 20 Sep 2005 12:57:20 +0000
parents 28084132c417
children 64231191674b
files opt.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/opt.c	Mon Sep 19 23:26:47 2005 +0000
+++ b/opt.c	Tue Sep 20 12:57:20 2005 +0000
@@ -264,7 +264,9 @@
         av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_AUDIO_PARAM   ) ? 'A' : '.');
         av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_SUBTITLE_PARAM) ? 'S' : '.');
         
-        av_log(av_log_obj, AV_LOG_INFO, " %s\n", opt->help);
+        if(opt->help)
+            av_log(av_log_obj, AV_LOG_INFO, " %s", opt->help);
+        av_log(av_log_obj, AV_LOG_INFO, "\n");
     }
     return 0;
 }