Replace some av_log/printf + #ifdef combinations by av_dlog.