hwaccel: Simplify ff_find_hwaccel

It is always called by passing fields from an AVCodecContext.