printf --> av_log with some help from Oded