lavc: allow using AVCodecContext.hw_frames_ctx for decoding