[FFmpeg-devel] [PATCH] Print long name of muxers/demuxers if available.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Nov 17 13:19:47 CET 2013
Makes issue #1720 more obvious, since the demuxer and muxer
have the same "mpeg" name, but the formats are actually not
at all the same.
Possibly the short names should be changed as well though.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavformat/utils.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 8c497d6..9abc65a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3569,13 +3569,15 @@ void av_dump_format(AVFormatContext *ic,
{
int i;
uint8_t *printed = ic->nb_streams ? av_mallocz(ic->nb_streams) : NULL;
+ char *long_name = is_output ? ic->oformat->long_name : ic->iformat->long_name;
if (ic->nb_streams && !printed)
return;
- av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s '%s':\n",
+ av_log(NULL, AV_LOG_INFO, "%s #%d, %s (%s), %s '%s':\n",
is_output ? "Output" : "Input",
index,
is_output ? ic->oformat->name : ic->iformat->name,
+ long_name ? long_name : "no description",
is_output ? "to" : "from", url);
dump_metadata(NULL, ic->metadata, " ");
if (!is_output) {
--
1.8.4.3
More information about the ffmpeg-devel
mailing list