From a205d8a399bc6532a9a63b6d5a47b871a8513123 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 27 Mar 2013 16:54:38 +0100 Subject: ffmpeg decoder plugin: do not print AVCodecContext.codec_name. It practically never contains anything useful. Print the decoder name instead. --- src/decoder/FfmpegDecoderPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/decoder/FfmpegDecoderPlugin.cxx b/src/decoder/FfmpegDecoderPlugin.cxx index a3a98a22..50b39d21 100644 --- a/src/decoder/FfmpegDecoderPlugin.cxx +++ b/src/decoder/FfmpegDecoderPlugin.cxx @@ -423,8 +423,6 @@ static int init_decoder(struct ffmpeg_decoder_context *dec, dec->time_base = dec->st->time_base; dec->avctx = dec->st->codec; - if (dec->avctx->codec_name[0] != 0) - g_debug("codec '%s'", dec->avctx->codec_name); AVCodec *codec = avcodec_find_decoder(dec->avctx->codec_id); @@ -432,6 +430,7 @@ static int init_decoder(struct ffmpeg_decoder_context *dec, g_warning("Unsupported audio codec\n"); return -1; } + g_debug("codec '%s'", codec->name); const enum sample_format sample_format = ffmpeg_sample_format(dec->avctx->sample_fmt); -- cgit v1.2.3