Mercurial > libavutil.hg
diff log.c @ 922:2acb0b1891c0 libavutil
av_default_item_name() so Simply AVClasses need 1 function less.
author | michael |
---|---|
date | Wed, 19 May 2010 22:45:04 +0000 |
parents | 3ab411c447c4 |
children | d45ace227adf |
line wrap: on
line diff
--- a/log.c Sun May 16 07:56:26 2010 +0000 +++ b/log.c Wed May 19 22:45:04 2010 +0000 @@ -55,6 +55,10 @@ } } +const char* av_default_item_name(void* ptr){ + return (*(AVClass**)ptr)->class_name; +} + void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) { static int print_prefix=1;