aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-09-20 12:57:20 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-09-20 12:57:20 +0000
commitd2752a0ddf176916c375c8e3c4a7a6e9d22164ee (patch)
tree4b1e9676a9ee8d31d2cfd481d3bfc5cdb48259a7
parent7df6545556367b62f6a122faf3298676c301af71 (diff)
downloadffmpeg-d2752a0ddf176916c375c8e3c4a7a6e9d22164ee.tar.gz
dont print NULL
Originally committed as revision 4600 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/opt.c4
1 files changed, 3 insertions, 1 deletions
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;
}