From cce1af54132ff7044a89388064490f53e6e80579 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 19 Sep 2025 20:56:10 +0200 Subject: [PATCH] avformat/mccenc: Hardcode codec names Reviewed-by: Jacob Lifshay Signed-off-by: Andreas Rheinhardt --- libavformat/mccenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/mccenc.c b/libavformat/mccenc.c index 1fbeebfe0f..c64d53805d 100644 --- a/libavformat/mccenc.c +++ b/libavformat/mccenc.c @@ -437,9 +437,7 @@ static int mcc_init(AVFormatContext *avf) } else if (st->codecpar->codec_id != AV_CODEC_ID_SMPTE_436M_ANC) { av_log(avf, AV_LOG_ERROR, - "mcc muxer supports only codec %s or codec %s\n", - avcodec_get_name(AV_CODEC_ID_SMPTE_436M_ANC), - avcodec_get_name(AV_CODEC_ID_EIA_608)); + "mcc muxer supports only codec smpte_436m_anc or codec eia_608\n"); return AVERROR(EINVAL); }