aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-27 16:54:38 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-11 10:49:15 +0200
commita205d8a399bc6532a9a63b6d5a47b871a8513123 (patch)
treef4afd0628c3036be7a361cb61feba2b24d851fe8
parentf22dd3e134527d3290bad749489583b851e1c6a5 (diff)
ffmpeg decoder plugin: do not print AVCodecContext.codec_name.
It practically never contains anything useful. Print the decoder name instead.
-rw-r--r--src/decoder/FfmpegDecoderPlugin.cxx3
1 files changed, 1 insertions, 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);