diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-06-25 21:38:10 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-22 19:08:13 +0200 |
commit | 95414eb2dc63a6f934275b4ed33dedd4369f2c49 (patch) | |
tree | a806cfb1653f298861f6467f0081e38885f32b43 /libavcodec/qsv_internal.h | |
parent | d9ec3c60143babe1bb77c268e1d5547d15acd69b (diff) | |
download | ffmpeg-95414eb2dc63a6f934275b4ed33dedd4369f2c49.tar.gz |
qsv: print more complete error messages
Include the libmfx error code and its description
Diffstat (limited to 'libavcodec/qsv_internal.h')
-rw-r--r-- | libavcodec/qsv_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h index e8657417f3..03b2f651db 100644 --- a/libavcodec/qsv_internal.h +++ b/libavcodec/qsv_internal.h @@ -57,7 +57,10 @@ typedef struct QSVFramesContext { /** * Convert a libmfx error code into a libav error code. */ -int ff_qsv_error(int mfx_err); +int ff_qsv_map_error(mfxStatus mfx_err, const char **desc); + +int ff_qsv_print_error(void *log_ctx, mfxStatus err, + const char *error_string); int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id); |