Put av_register_all() in the right place.