2nd try to fix av_log() repeated detection