diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-30 20:05:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-30 20:06:24 +0200 |
commit | 7edb984dd051b6919d7d8471c70499273f31b0fa (patch) | |
tree | 3556364ca53043eb594f1dd8ad40d3003c154383 /libavutil/log.c | |
parent | 53efb2fa09c0ae966e4afa88294130c841b2cf55 (diff) | |
download | ffmpeg-7edb984dd051b6919d7d8471c70499273f31b0fa.tar.gz |
avutil/log: Fix context pointer used for get_category()
Fixes calling a random pointer
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.c')
-rw-r--r-- | libavutil/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/log.c b/libavutil/log.c index f29345b97a..15ff5f86bc 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -180,7 +180,7 @@ static void format_line(void *ptr, int level, const char *fmt, va_list vl, if (parent && *parent) { snprintf(part[0], part_size, "[%s @ %p] ", (*parent)->item_name(parent), parent); - if(type) type[0] = get_category(((uint8_t *) ptr) + avc->parent_log_context_offset); + if(type) type[0] = get_category(parent); } } snprintf(part[1], part_size, "[%s @ %p] ", |