aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);