From d2752a0ddf176916c375c8e3c4a7a6e9d22164ee Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 20 Sep 2005 12:57:20 +0000 Subject: [PATCH] dont print NULL Originally committed as revision 4600 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/opt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/opt.c b/libavcodec/opt.c index 8934c23d4e..9a3cd80eeb 100644 --- a/libavcodec/opt.c +++ b/libavcodec/opt.c @@ -264,7 +264,9 @@ int av_opt_show(void *obj, void *av_log_obj){ 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; }