diff options
author | Matthieu Bouron <matthieu.bouron@gmail.com> | 2013-01-26 15:46:01 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-27 21:44:16 +0400 |
commit | 9d602a0b0e955ac8553b16fc1b98731d66fdde2b (patch) | |
tree | e78db148e64e338c99512e5dbd478a1f41d3c350 /libavcodec/dnxhdenc.c | |
parent | 5b83b2da08b4be31fc421a698ea649799e0848c7 (diff) |
lavc/dnxhdenc: print valid profiles when codec parameters are invalid
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 5ad6164e8f..51f2af062a 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -266,7 +266,8 @@ static int dnxhd_encode_init(AVCodecContext *avctx) ctx->cid = ff_dnxhd_find_cid(avctx, bit_depth); if (!ctx->cid) { - av_log(avctx, AV_LOG_ERROR, "video parameters incompatible with DNxHD\n"); + av_log(avctx, AV_LOG_ERROR, "video parameters incompatible with DNxHD. Valid DNxHD profiles:\n"); + ff_dnxhd_print_profiles(avctx, AV_LOG_ERROR); return -1; } av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid); |