Try to setup avcodec audio format as soon as possible.