diff options
author | Nico Sabbi <nicola.sabbi@poste.it> | 2007-10-26 20:02:11 +0000 |
---|---|---|
committer | Nico Sabbi <nicola.sabbi@poste.it> | 2007-10-26 20:02:11 +0000 |
commit | f473666f518c7dbb0b165b0d874b037a316fa5c9 (patch) | |
tree | f6442eaf1018fb6cd6579c5c2afead79e6a75e92 | |
parent | 759d98d0c6f872fe7f7beb89c71cfcd4a607a55b (diff) | |
download | ffmpeg-f473666f518c7dbb0b165b0d874b037a316fa5c9.tar.gz |
print newline after program id even when the name is missing
Originally committed as revision 10864 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index a7a686e52a..c91102c6ce 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2580,9 +2580,8 @@ void dump_format(AVFormatContext *ic, if(ic->nb_programs) { int j, k; for(j=0; j<ic->nb_programs; j++) { - av_log(NULL, AV_LOG_INFO, " Program %d", ic->programs[j]->id); - if(ic->programs[j]->name) - av_log(NULL, AV_LOG_INFO, " \"%s\"\n", ic->programs[j]->name); + av_log(NULL, AV_LOG_INFO, " Program %d %s\n", ic->programs[j]->id, + ic->programs[j]->name ? ic->programs[j]->name : ""); for(k=0; k<ic->programs[j]->nb_stream_indexes; k++) dump_stream_format(ic, ic->programs[j]->stream_index[k], index, is_output); } |