avformat: Implement BGRA->YUV420p from scratch for even greater speed