diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-03-12 15:21:41 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-03-12 15:21:41 +0000 |
commit | a7434ef19585f3af9ec168ec2db3db299f447285 (patch) | |
tree | 08fb000fa6c323c34839d1e014414238c912f9e8 /libavcodec/qsv.c | |
parent | 80fa5a0bcc13375711d9901f6ac7d8bdcc10a883 (diff) | |
parent | 8e07c22e508b349d145b9f142aa3ee8b3ce1d3a4 (diff) | |
download | ffmpeg-a7434ef19585f3af9ec168ec2db3db299f447285.tar.gz |
Merge commit '8e07c22e508b349d145b9f142aa3ee8b3ce1d3a4'
* commit '8e07c22e508b349d145b9f142aa3ee8b3ce1d3a4':
qsvenc: print warnings from encode/init
Merged-by: Mark Thompson <sw@jkqxz.net>
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 76c7826536..d9a041cc23 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -133,6 +133,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) { |