summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhdenc.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-02-08 10:17:00 +0100
committerLuca Barbato <lu_zero@gentoo.org>2016-02-09 20:02:31 +0100
commit99214d42a902c8392d7887c08fdc5dc1fc2475ae (patch)
tree51f9c33492ef61d9846102e107ca966b10cbcfb5 /libavcodec/dnxhdenc.c
parent34c9eba982c75196392a3b0b245dd34297c4511d (diff)
dnxhd: Make the encoder message friendlier
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r--libavcodec/dnxhdenc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index d2fbc167d2..b7786afa68 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -289,14 +289,15 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
break;
default:
av_log(avctx, AV_LOG_ERROR,
- "pixel format is incompatible with DNxHD\n");
+ "Pixel format is incompatible with DNxHD, use yuv422p or yuv422p10.\n");
return AVERROR(EINVAL);
}
ctx->cid = ff_dnxhd_find_cid(avctx, bit_depth);
if (!ctx->cid) {
av_log(avctx, AV_LOG_ERROR,
- "video parameters incompatible with DNxHD\n");
+ "Video parameters incompatible with DNxHD, available CIDs:\n");
+ ff_dnxhd_list_cid(avctx);
return AVERROR(EINVAL);
}
av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid);