simplify the separator stuff
This commit is contained in:
parent
a141064aad
commit
337d8a748c
|
@ -363,15 +363,9 @@ void zm_dump_stream_format(AVFormatContext *ic, int i, int index, int is_output)
|
|||
int flags = (is_output ? ic->oformat->flags : ic->iformat->flags);
|
||||
AVStream *st = ic->streams[i];
|
||||
AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0);
|
||||
unsigned char *separator = ic->dump_separator;
|
||||
char **codec_separator = (char **)av_opt_ptr(st->codec->av_class, st->codec, "dump_separator");
|
||||
int use_format_separator = !*codec_separator;
|
||||
char separator = '\n';
|
||||
|
||||
if (use_format_separator)
|
||||
*codec_separator = av_strdup((const char *)separator);
|
||||
avcodec_string(buf, sizeof(buf), st->codec, is_output);
|
||||
if (use_format_separator)
|
||||
av_freep(codec_separator);
|
||||
Debug(3, " Stream #%d:%d", index, i);
|
||||
|
||||
/* the pid is an important information, so we display it */
|
||||
|
|
Loading…
Reference in New Issue