diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-07-14 12:56:35 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-22 19:08:13 +0200 |
commit | 8e07c22e508b349d145b9f142aa3ee8b3ce1d3a4 (patch) | |
tree | 1fecbd34359ad66ce31ffb498d1f734ddf3e4302 /libavcodec/qsv.c | |
parent | 0956fd460681e8ccbdae19f135f0d3970bf95c2f (diff) | |
download | ffmpeg-8e07c22e508b349d145b9f142aa3ee8b3ce1d3a4.tar.gz |
qsvenc: print warnings from encode/init
Diffstat (limited to 'libavcodec/qsv.c')
-rw-r--r-- | libavcodec/qsv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 14f16bc66d..91195865bc 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -117,6 +117,16 @@ int ff_qsv_print_error(void *log_ctx, mfxStatus err, return ret; } +int ff_qsv_print_warning(void *log_ctx, mfxStatus err, + const char *warning_string) +{ + const char *desc; + int ret; + ret = ff_qsv_map_error(err, &desc); + av_log(log_ctx, AV_LOG_WARNING, "%s: %s (%d)\n", warning_string, desc, err); + return ret; +} + int ff_qsv_map_pixfmt(enum AVPixelFormat format, uint32_t *fourcc) { switch (format) { |