printf-> av_log patch by (Benjamin Larsson, banan: student ltu se)