hevc_filter: avoid excessive calls to ff_hevc_get_ref_list()