Today I planned to add to av_log() some optional features in order to
track file, line and function.
I noticed some strange code introduced with this commit[1]
if(avc && avc->version >= (50<<16 | 15<<8 | 2) &&
avc->log_level_offset_offset && level>=AV_LOG_FATAL)
level += *(int*)(((uint8_t*)avcl) + avc->log_level_offset_offset);
av_vlog(avcl, level, fmt, vl);
It doesn't look particularly widespread and probably could be removed or
at least documented (only libavcodec seems to use it)
lu
[1] http://git.libav.org/?p=libav.git;a=commit;h=3fe1ec39c6ee
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel