printf --> av_log, patch by Denis Fortin, fortin nerim net