Properly use av_log rather than fprintf/printf.