diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2017-02-09 22:19:59 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2017-02-14 11:48:38 +0100 |
commit | b6f4f0b14b0f8c00d7d1dec1d1f03d82b85dd617 (patch) | |
tree | 11abcc0b374bcf8235230b4c9a31bed36a0de899 /libavcodec | |
parent | ce79410bba776d4121685654056f2b4e39bbd3f7 (diff) | |
download | ffmpeg-b6f4f0b14b0f8c00d7d1dec1d1f03d82b85dd617.tar.gz |
avcodec/cuvid: add format mismatch debug logs
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cuvid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/cuvid.c b/libavcodec/cuvid.c index 5e6e7167ee..f5a49ce86f 100644 --- a/libavcodec/cuvid.c +++ b/libavcodec/cuvid.c @@ -207,6 +207,11 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form hwframe_ctx->format != AV_PIX_FMT_CUDA || hwframe_ctx->sw_format != avctx->sw_pix_fmt)) { av_log(avctx, AV_LOG_ERROR, "AVHWFramesContext is already initialized with incompatible parameters\n"); + av_log(avctx, AV_LOG_DEBUG, "width: %d <-> %d\n", hwframe_ctx->width, avctx->width); + av_log(avctx, AV_LOG_DEBUG, "height: %d <-> %d\n", hwframe_ctx->height, avctx->height); + av_log(avctx, AV_LOG_DEBUG, "format: %s <-> cuda\n", av_get_pix_fmt_name(hwframe_ctx->format)); + av_log(avctx, AV_LOG_DEBUG, "sw_format: %s <-> %s\n", + av_get_pix_fmt_name(hwframe_ctx->sw_format), av_get_pix_fmt_name(avctx->sw_pix_fmt)); ctx->internal_error = AVERROR(EINVAL); return 0; } |