projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df6545
)
dont print NULL
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Sep 2005 12:57:20 +0000
(12:57 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Sep 2005 12:57:20 +0000
(12:57 +0000)
Originally committed as revision 4600 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
8934c23
..
9a3cd80
100644
(file)
--- 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;
}