aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_subtitles.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-09-11 21:10:03 +0200
committerClément Bœsch <u@pkh.me>2014-09-16 21:23:33 +0200
commit8a9c5db29e847b35a70e1866dde2a1d056e2a265 (patch)
tree7127f44a8bdc7dec5dfbcbfd80026046854e0a7a /libavfilter/vf_subtitles.c
parenta87527ad67377d502fc0731021239797cb8e9481 (diff)
downloadffmpeg-8a9c5db29e847b35a70e1866dde2a1d056e2a265.tar.gz
avfilter/ass: better log level mapping
Diffstat (limited to 'libavfilter/vf_subtitles.c')
-rw-r--r--libavfilter/vf_subtitles.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index 44273cbdb8..c9c21a797f 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -68,14 +68,14 @@ typedef struct {
/* libass supports a log level ranging from 0 to 7 */
static const int ass_libavfilter_log_level_map[] = {
- AV_LOG_QUIET, /* 0 */
- AV_LOG_PANIC, /* 1 */
- AV_LOG_FATAL, /* 2 */
- AV_LOG_ERROR, /* 3 */
- AV_LOG_WARNING, /* 4 */
- AV_LOG_INFO, /* 5 */
- AV_LOG_VERBOSE, /* 6 */
- AV_LOG_DEBUG, /* 7 */
+ [0] = AV_LOG_FATAL, /* MSGL_FATAL */
+ [1] = AV_LOG_ERROR, /* MSGL_ERR */
+ [2] = AV_LOG_WARNING, /* MSGL_WARN */
+ [3] = AV_LOG_WARNING, /* <undefined> */
+ [4] = AV_LOG_INFO, /* MSGL_INFO */
+ [5] = AV_LOG_INFO, /* <undefined> */
+ [6] = AV_LOG_VERBOSE, /* MSGL_V */
+ [7] = AV_LOG_DEBUG, /* MSGL_DBG2 */
};
static void ass_log(int ass_level, const char *fmt, va_list args, void *ctx)