lavd/avfoundation: use AVCodecParameters