replace NULL with pointer to AVFormatContext in av_log calling