From c75097b02ee7e2045bd1beb879f08d2ef0d6b191 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 17 Sep 2017 00:00:24 +0200 Subject: [PATCH] [transcode] Log pix_fmt by name instead of enum --- src/transcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transcode.c b/src/transcode.c index 764dc2b6..b6857cfe 100644 --- a/src/transcode.c +++ b/src/transcode.c @@ -380,7 +380,7 @@ stream_add(struct encode_ctx *ctx, struct stream_ctx *s, enum AVCodecID codec_id if (!s->codec->pix_fmt) { s->codec->pix_fmt = avcodec_default_get_format(s->codec, encoder->pix_fmts); - DPRINTF(E_DBG, L_XCODE, "Pixel format set to %d (encoder is %s)\n", s->codec->pix_fmt, codec_name); + DPRINTF(E_DBG, L_XCODE, "Pixel format set to %s (encoder is %s)\n", av_get_pix_fmt_name(s->codec->pix_fmt), codec_name); } if (ctx->ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)